forked from smuzaffar/cms.bits
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenmpi.sh
More file actions
52 lines (49 loc) · 1.14 KB
/
openmpi.sh
File metadata and controls
52 lines (49 loc) · 1.14 KB
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
48
49
50
51
52
package: openmpi
version: "%(tag_basename)s"
tag: e6d2cb856f3fc649aa01bd5b688a003b3b33db7d
requires:
- gcc
- libfabric
- hwloc
- rdma-core
- xpmem
- ucx
sources:
- https://github.com/open-mpi/ompi/archive/%(tag_basename)s.tar.gz
---
tar -xzf "$SOURCEDIR/${SOURCE0}" \
--strip-components=1 \
-C "$BUILDDIR"
CONFIGURE_OPTS="\
--prefix=$INSTALLROOT \
--disable-dependency-tracking \
--enable-ipv6 \
--enable-mpi-cxx \
--enable-shared \
--disable-static \
--enable-cxx-exceptions \
--disable-mpi-java \
--enable-openib-rdmacm-ibaddr \
--with-zlib=$ZLIB_ROOT \
--with-hwloc=$HWLOC_ROOT \
--with-ofi=$LIBFABRIC_ROOT \
--without-portals4 \
--without-psm \
--without-psm2 \
--with-verbs=$RDMA_CORE_ROOT \
--without-mxm \
--with-ucx=$UCX_ROOT \
--with-cma \
--without-knem \
--with-xpmem=$XPMEM_ROOT \
--without-x \
--with-pic \
--with-gnu-ld \
--with-pmix=internal"
[ -z "$without_cuda" ] && CONFIGURE_OPTS+=" --with-cuda=$CUDA_ROOT"
AUTOMAKE_JOBS=${JOBS:+-j$JOBS} ./autogen.pl
unset HWLOC_VERSION
./configure $CONFIGURE_OPTS
make ${JOBS:+-j$JOBS}
make install
find $INSTALLROOT/lib/ -name '*.la' -delete