[packages/knem] - new

qboosh qboosh at pld-linux.org
Fri Jun 13 18:38:18 CEST 2025


commit 970e9438116c43908c7e37d330383b1ca87592ee
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jun 13 18:16:19 2025 +0200

    - new

 knem.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
---
diff --git a/knem.spec b/knem.spec
new file mode 100644
index 0000000..d5928f3
--- /dev/null
+++ b/knem.spec
@@ -0,0 +1,71 @@
+# TODO:
+# - kernel module (+git patches for newer kernels)
+# - finish knem.rules file and package it (wrong dir, non-existing rdma group)
+#
+# Conditional build:
+%bcond_without	static_libs	# static libraries
+%bcond_with	kernel		# kernel module
+%bcond_without	userspace	# userspace tools
+#
+Summary:	High-performance intra-node MPI communication for large messages
+Summary(pl.UTF-8):	Wysokowydajna komunikacja międzywęzłowa MPI dla dużych komunikatów
+Name:		knem
+Version:	1.1.4
+Release:	1
+License:	BSD (userspace tools), GPL v2 (kernel module)
+Group:		Applications/System
+#Source0Download: https://knem.gitlabpages.inria.fr/download/
+Source0:	https://gitlab.inria.fr/knem/knem/uploads/4a43e3eb860cda2bbd5bf5c7c04a24b6/%{name}-%{version}.tar.gz
+URL:		https://knem.gitlabpages.inria.fr/
+BuildRequires:	hwloc-devel >= 1.0
+BuildRequires:	pkgconfig
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+High-performance intra-node MPI communication for large messages.
+
+%description -l pl.UTF-8
+Wysokowydajna komunikacja międzywęzłowa MPI dla dużych komunikatów.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--disable-silent-rules \
+	%{!?with_static_libs:--disable-static}
+
+%if %{with kernel}
+%{__make} -C driver/linux
+%endif
+
+%if %{with userspace}
+%{__make} -C tools
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with userspace}
+%{__make} -C tools install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/*_test
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%if %{with userspace}
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING COPYING.BSD-3 ChangeLog README REPORTING-BUGS TODO
+%attr(755,root,root) %{_bindir}/knem_collectives
+%attr(755,root,root) %{_bindir}/knem_cost
+%attr(755,root,root) %{_bindir}/knem_loopback
+%attr(755,root,root) %{_bindir}/knem_pingpong
+%attr(755,root,root) %{_bindir}/knem_region_cost
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/knem.git/commitdiff/970e9438116c43908c7e37d330383b1ca87592ee



More information about the pld-cvs-commit mailing list