commit
a3297dcc0c
11
0000-extend-fdesc-array.patch
Normal file
11
0000-extend-fdesc-array.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- psm_utils.c.orig 2018-03-14 21:12:33.678607767 -0400
|
||||
+++ psm_utils.c 2018-03-14 21:11:04.696909162 -0400
|
||||
@@ -951,7 +951,7 @@ struct psmi_faultinj_spec *psmi_faultinj
|
||||
union psmi_envvar_val env_fi;
|
||||
char fvals_str[128];
|
||||
char fname[128];
|
||||
- char fdesc[256];
|
||||
+ char fdesc[512];
|
||||
|
||||
snprintf(fvals_str, sizeof(fvals_str) - 1, "%d:%d:1", num,
|
||||
denom);
|
||||
BIN
PSM2_10.3.58.tar.gz
Normal file
BIN
PSM2_10.3.58.tar.gz
Normal file
Binary file not shown.
72
libpsm2.spec
Normal file
72
libpsm2.spec
Normal file
@ -0,0 +1,72 @@
|
||||
Name: libpsm2
|
||||
Version: 10.3.58
|
||||
Release: 3
|
||||
Summary: Intel PSM Libraries
|
||||
License: BSD or GPLv2
|
||||
URL: https://github.com/01org/opa-psm2/
|
||||
|
||||
Source0: https://github.com/intel/opa-psm2/archive/PSM2_10.3.58.tar.gz
|
||||
#extend fdesc array
|
||||
Patch0: 0000-extend-fdesc-array.patch
|
||||
|
||||
ExclusiveArch: x86_64
|
||||
BuildRequires: libuuid-devel numactl-devel
|
||||
Obsoletes: hfi1-psm < 1.0.0
|
||||
|
||||
%package devel
|
||||
Summary: Development files for Intel PSM
|
||||
Requires: libpsm2 = 10.3.58-3 libuuid-devel
|
||||
|
||||
%package compat
|
||||
Summary: Compat library for Intel PSM
|
||||
Requires: libpsm2 = 10.3.58-3 systemd-udev
|
||||
|
||||
%description
|
||||
The PSM Messaging API, or PSM API, is the low-level user-level communications interface for the Intel OPA
|
||||
family of products. PSM users are enabled with mechanisms necessary to implement higher level communications
|
||||
interfaces in parallel environments. The PSM2 library supports a number of fabric media and stack.
|
||||
|
||||
%description devel
|
||||
Development package for the Intel PSM library
|
||||
|
||||
%description compat
|
||||
Support for MPIs linked with PSM versions less than 2
|
||||
|
||||
%prep
|
||||
%autosetup -n opa-psm2-PSM2_10.3.58 -p0
|
||||
|
||||
%build
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -f %{buildroot}%{_libdir}/*.a
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%{_libdir}/libpsm2.so.2.1
|
||||
%{_libdir}/libpsm2.so.2
|
||||
%{_udevrulesdir}/40-psm.rules
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libpsm2.so
|
||||
%{_includedir}/psm2.h
|
||||
%{_includedir}/psm2_mq.h
|
||||
%{_includedir}/psm2_am.h
|
||||
%{_includedir}/hfi1diag
|
||||
|
||||
%files compat
|
||||
%{_libdir}/psm2-compat
|
||||
%{_udevrulesdir}/40-psm-compat.rules
|
||||
%{_prefix}/lib/libpsm2
|
||||
%{_sysconfdir}/modprobe.d/libpsm2-compat.conf
|
||||
|
||||
%changelog
|
||||
* Wed Mar 4 2020 zhangtao <zhangtao221@huawei.com> - 10.3.58-3
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user