forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathucx.sh
47 lines (42 loc) · 1.82 KB
/
ucx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package: ucx
version: "%(tag_basename)s"
tag: v1.13.1
requires:
- "GCC-Toolchain:(?!osx)"
build_requires:
- "autotools:(slc6|slc7)"
- alibuild-recipe-tools
- "GCC-Toolchain:(?!osx)"
source: https://github.com/openucx/ucx
---
#!/bin/bash -e
# Unified Communication X Library (linux only)
## NOTE: rdma-core and rdma-core-devel (v35+) packages must be installed for O2 FLP/EPN use
printf "#include <rdma/rdma_cma.h>" | cc -xc - -c -o /dev/null ||
( printf "rdma-core not found.\n * On RHEL-compatible systems you probably need: rdma-core-devel\n"; exit 1; )
rsync -a --delete --exclude "**/.git" ${SOURCEDIR}/ .
./autogen.sh
./contrib/configure-release-mt --prefix=${INSTALLROOT} \
--with-verbs \
--with-rdmacm \
--with-ib-hw-tm \
--with-mlx5-dv \
--with-rc \
--with-ud \
--with-dc \
--with-dm \
--with-avx \
--with-sse41 \
--with-sse42 \
--without-java \
--without-go \
--without-fuse3 \
--without-cuda \
--without-rocm
make ${JOBS+-j$JOBS} || make -j1
make install
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
alibuild-generate-module --bin --lib > $MODULEFILE