4 Commits

4 changed files with 51 additions and 0 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of libpsm2 in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/libpsm2/standard)
The current state of libpsm2 in the devel project build (science:HPC)
![Devel project build results](https://br.opensuse.org/status/science:HPC/libpsm2)

31
libpsm2-gcc16-fixes.patch Normal file
View File

@@ -0,0 +1,31 @@
commit ae8ed797f23b904a80d054ef10e286abe854a3ba
Author: Nicolas Morey <nmorey@suse.com>
Date: Tue Jan 20 13:50:57 2026 +0100
libpsm2: gcc16 fixes
Signed-off-by: Nicolas Morey <nmorey@suse.com>
diff --git psm_mpool.c psm_mpool.c
index e36e91724333..2a42e6e12287 100644
--- psm_mpool.c
+++ psm_mpool.c
@@ -435,8 +435,6 @@ void psmi_mpool_chunk_dealloc(mpool_t mp, int idx)
void psmi_mpool_destroy(mpool_t mp)
{
int i = 0;
- size_t nbytes = mp->mp_num_obj * mp->mp_elm_size;
-
for (i = 0; i < mp->mp_elm_vector_size; i++) {
if (mp->mp_elm_vector[i]) {
#ifdef PSM_CUDA
@@ -447,9 +445,7 @@ void psmi_mpool_destroy(mpool_t mp)
}
}
psmi_free(mp->mp_elm_vector);
- nbytes += mp->mp_elm_vector_size * sizeof(struct mpool_element *);
psmi_free(mp);
- nbytes += sizeof(struct mpool);
}
/**

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 20 12:53:12 UTC 2026 - Nicolas Morey <nicolas.morey@suse.com>
- Add patch to fix compilation with GCC 16 (bsc#1256971):
- libpsm2-gcc16-fixes.patch
-------------------------------------------------------------------
Fri Jul 4 06:43:53 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>

View File

@@ -34,9 +34,11 @@ URL: https://github.com/cornelisnetworks/opa-psm2/
Source0: %{name}-%{version}%{git_ver}.tar.bz2
Source1: libpsm2.changelog
Source2: libpsm2-rpmlintrc
Source100: README.md
Patch2: libpsm2-use_RPM_OPT_FLAGS.patch
Patch3: libpsm2-use-exported-variable-for-version-and-release.patch
Patch4: libpsm2-disable-AVX.patch
Patch5: libpsm2-gcc16-fixes.patch
BuildRequires: libnuma-devel
BuildRequires: libuuid-devel
BuildRequires: pkgconfig