Skip to content

Commit 997ae24

Browse files
committed
Add Libfabric OpenFabrics version 2.1.0
Libfabric, also known as Open Fabrics Interfaces (OFI), defines a communication API for high-performance parallel and distributed applications. It is a low-level communication library that abstracts diverse networking technologies. See https://ofiwg.github.io/libfabric/ for more information.
1 parent 1542190 commit 997ae24

File tree

3 files changed

+88
-0
lines changed

3 files changed

+88
-0
lines changed

cmssw-tools.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Requires: numactl
7878
Requires: hwloc
7979
Requires: rdma-core
8080
Requires: ucx
81+
Requires: libfabric
8182
Requires: openmpi
8283
Requires: sigcpp
8384
Requires: sqlite

libfabric.spec

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
### RPM external libfabric 2.1.0
2+
Source: https://github.com/ofiwg/%{n}/releases/download/v%{realversion}/%{n}-%{realversion}.tar.bz2
3+
%{!?without_cuda:Requires: cuda gdrcopy}
4+
%{!?without_rocm:Requires: rocm}
5+
Requires: curl
6+
Requires: numactl
7+
Requires: rdma-core
8+
Requires: xpmem
9+
10+
%prep
11+
%setup -q -n %{n}-%{realversion}
12+
13+
# regenerate the configure files and Makefiles
14+
./autogen.sh
15+
16+
./configure \
17+
--prefix=%i \
18+
--disable-dependency-tracking \
19+
--disable-debug \
20+
--disable-profile \
21+
--disable-asan \
22+
--disable-lsan \
23+
--disable-tsan \
24+
--disable-ubsan \
25+
--enable-shared \
26+
--disable-static \
27+
--enable-shm \
28+
--enable-sm2 \
29+
--enable-xpmem=$XPMEM_ROOT \
30+
--disable-sockets \
31+
--enable-tcp \
32+
--enable-udp \
33+
--enable-verbs=$RDMA_CORE_ROOT \
34+
--disable-opx \
35+
--disable-psm2 \
36+
--disable-psm3 \
37+
--disable-usnic \
38+
--disable-efa \
39+
--disable-cxi \
40+
--disable-mrail \
41+
--disable-lpp \
42+
--disable-ucx \
43+
--enable-rxm \
44+
--enable-lnx \
45+
%if 0%{!?without_cuda:1}
46+
--enable-cuda-dlopen \
47+
--enable-gdrcopy-dlopen \
48+
--with-cuda=$CUDA_ROOT \
49+
--with-gdrcopy=$GDRCOPY_ROOT \
50+
%else
51+
--disable-cuda-dlopen \
52+
--disable-gdrcopy-dlopen \
53+
--without-cuda \
54+
--without-gdrcopy \
55+
%endif
56+
%if 0%{!?without_rocm:1}
57+
--enable-rocr-dlopen \
58+
--with-rocr=$ROCM_ROOT \
59+
%else
60+
--disable-rocr-dlopen \
61+
--without-rocr \
62+
%endif
63+
--disable-ze-dlopen \
64+
--without-ze \
65+
--with-pic \
66+
--with-dlopen \
67+
--with-gnu-ld \
68+
--with-curl=DIR \
69+
--with-numa=$NUMACTL_ROOT
70+
71+
# CFLAGS="-Wno-error=array-bounds"
72+
73+
%build
74+
make %{makeprocesses}
75+
76+
%install
77+
make install
78+
79+
%post
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<tool name="libfabric" version="@TOOL_VERSION@" revision="1">
2+
<lib name="fabric"/>
3+
<client>
4+
<environment name="LIBFABRIC_BASE" default="@TOOL_ROOT@"/>
5+
<environment name="LIBDIR" default="$LIBFABRIC_BASE/lib"/>
6+
<environment name="INCLUDE" default="$LIBFABRIC_BASE/include"/>
7+
</client>
8+
</tool>

0 commit comments

Comments
 (0)