Skip to content

Commit

Permalink
Add the UCX libraries version 1.9.0
Browse files Browse the repository at this point in the history
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
fwyzard committed Dec 30, 2020
1 parent aa57825 commit 1613e44
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ucx-toolfile.spec
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
67 changes: 67 additions & 0 deletions ucx.spec
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

0 comments on commit 1613e44

Please sign in to comment.