-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unified Communication X (UCX) provides an optimized communication layer for Message Passing (MPI), PGAS/OpenSHMEM libraries and RPC/data-centric applications. UCX utilizes high-speed networks for inter-node communication, and shared memory mechanisms for efficient intra-node communication. For more information see - https://www.openucx.org/ - https://github.com/openucx/ucx/tree/v1.9.0
- Loading branch information
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### RPM external ucx-toolfile 1.0 | ||
Requires: ucx | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/ucx.xml | ||
<tool name="ucx" version="@TOOL_VERSION@"> | ||
<lib name="ucp"/> | ||
<lib name="uct"/> | ||
<lib name="ucs"/> | ||
<lib name="ucm"/> | ||
<client> | ||
<environment name="UCX_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="INCLUDE" default="$UCX_BASE/include"/> | ||
<environment name="LIBDIR" default="$UCX_BASE/lib"/> | ||
</client> | ||
<runtime name="PATH" value="$UCX_BASE/bin" type="path"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
## IMPORT scram-tools-post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
### RPM external ucx 1.9.0 | ||
Source: https://github.com/openucx/%{n}/releases/download/v%{realversion}/%{n}-%{realversion}.tar.gz | ||
BuildRequires: autotools | ||
Requires: numactl cuda gdrcopy | ||
AutoReq: no | ||
# external libraries are needed for additional protocols: | ||
# --with-rocm: AMD ROCm platform for accelerated compute | ||
# --with-verbs: Verbs library for direct userspace use of RDMA (InfiniBand/iWARP) hardware | ||
# --with-cm: Userspace InfiniBand Communication Managment library | ||
# --with-rdmacm: Userspace RDMA Connection Manager | ||
# --with-knem: KNEM High-Performance Intra-Node MPI Communication | ||
# etc. | ||
|
||
%prep | ||
%setup -q -n %{n}-%{realversion} | ||
|
||
./configure \ | ||
--prefix=%i \ | ||
--disable-dependency-tracking \ | ||
--enable-openmp \ | ||
--enable-shared \ | ||
--disable-static \ | ||
--enable-ucg \ | ||
--disable-doxygen-doc \ | ||
--disable-doxygen-man \ | ||
--disable-doxygen-html \ | ||
--enable-compiler-opt \ | ||
--enable-cma \ | ||
--enable-mt \ | ||
--with-pic \ | ||
--with-gnu-ld \ | ||
--with-avx \ | ||
--with-sse41 \ | ||
--with-sse42 \ | ||
--without-java \ | ||
--with-cuda=$CUDA_ROOT \ | ||
--without-rocm \ | ||
--with-gdrcopy=$GDRCOPY_ROOT \ | ||
--without-verbs \ | ||
--with-rc \ | ||
--with-ud \ | ||
--with-dc \ | ||
--with-mlx5-dv \ | ||
--with-ib-hw-tm \ | ||
--with-dm \ | ||
--without-cm \ | ||
--without-rdmacm \ | ||
--without-knem \ | ||
--with-xpmem \ | ||
CPPFLAGS="-I$NUMACTL_ROOT/include" \ | ||
LDFLAGS="-L$NUMACTL_ROOT/lib" | ||
|
||
%build | ||
make %{makeprocesses} | ||
|
||
%install | ||
make install | ||
|
||
# Remove pkg-config to avoid rpm-generated dependency on /usr/bin/pkg-config | ||
rm -rf %{i}/lib/pkgconfig | ||
|
||
# Remove the UCX examples | ||
rm -rf %{i}/share/ucx/examples | ||
|
||
%post | ||
%{relocateConfig}lib/lib*.la | ||
%{relocateConfig}lib/ucx/lib*.la |