From d6c24f09038b2dc81040cbdb065cee3b76505496 Mon Sep 17 00:00:00 2001 From: maqi Date: Mon, 17 Feb 2025 13:50:02 +0800 Subject: [PATCH] add support sw_64 (cherry picked from commit ff91e123725178bd278e2831b5fece8f2fcac034) --- 0003-memkind-add-sw64-support.patch | 26 ++++++++++++++++++++++++++ memkind.spec | 8 ++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 0003-memkind-add-sw64-support.patch diff --git a/0003-memkind-add-sw64-support.patch b/0003-memkind-add-sw64-support.patch new file mode 100644 index 0000000..f0376b2 --- /dev/null +++ b/0003-memkind-add-sw64-support.patch @@ -0,0 +1,26 @@ +From 9d68f6afce39f03e5301383193ee6d46a1cad584 Mon Sep 17 00:00:00 2001 +From: maqi +Date: Fri, 15 Nov 2024 16:35:15 +0800 +Subject: [PATCH] add sw64 support + +--- + jemalloc/include/jemalloc/internal/quantum.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/jemalloc/include/jemalloc/internal/quantum.h b/jemalloc/include/jemalloc/internal/quantum.h +index c22d753..3fbef00 100644 +--- a/jemalloc/include/jemalloc/internal/quantum.h ++++ b/jemalloc/include/jemalloc/internal/quantum.h +@@ -62,6 +62,9 @@ + defined(__SH4_SINGLE_ONLY__)) + # define LG_QUANTUM 4 + # endif ++# ifdef __sw_64__ ++# define LG_QUANTUM 4 ++# endif + # ifdef __tile__ + # define LG_QUANTUM 4 + # endif +-- +2.33.0 + diff --git a/memkind.spec b/memkind.spec index bc5f8d8..5ed776c 100644 --- a/memkind.spec +++ b/memkind.spec @@ -1,15 +1,16 @@ Name: memkind Summary: Extensible Heap Manager for User Version: 1.14.0 -Release: 5 +Release: 6 License: BSD URL: http://memkind.github.io/memkind Source0: https://github.com/memkind/memkind/archive/v1.14.0/%{name}-%{version}.tar.gz Patch0001: 0001-support-multi-threading-build.patch Patch0002: 0002-Support-initializing-HBW-nodes-from-memory_locality.patch +Patch0003: 0003-memkind-add-sw64-support.patch BuildRequires: automake libtool numactl-devel systemd gcc gcc-c++ hwloc-devel -ExclusiveArch: x86_64 aarch64 riscv64 loongarch64 +ExclusiveArch: x86_64 aarch64 riscv64 loongarch64 sw_64 %description The kinds of memory are defined by operating system memory policies that have been applied @@ -83,6 +84,9 @@ popd %{_mandir}/man7/* %changelog +* Mon Feb 17 2025 maqi - 1.14.0-6 +- add support sw_64 + * Mon Jul 1 2024 Jie Liu - 1.14.0-5 - Support initializing HBW nodes from HMAT with libaray hwloc-devel -- Gitee