-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopenmpi-ib.sif
37 lines (27 loc) · 924 Bytes
/
openmpi-ib.sif
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
Bootstrap: docker
From: centos:7
%environment
export LD_LIBRARY_PATH=/usr/lib64/libibverbs:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/opt/ompi/lib:$LD_LIBRARY_PATH
export PATH=/opt/ompi/bin:$PATH
%post
yum install -y epel-release
yum install -y net-tools
yum install -y libibverbs
yum install -y libibverbs-devel
yum install -y infiniband-diags
yum install -y perftest
yum install -y wget
yum install -y gcc
yum install -y gcc-c++
yum install -y make
export LD_LIBRARY_PATH=/usr/lib64/libibverbs:$LD_LIBRARY_PATH
mkdir /tmp/openmpi && \
cd /tmp/openmpi && \
wget https://www.open-mpi.org/software/ompi/v4.0/downloads/openmpi-4.0.0.tar.gz && \
tar zxf openmpi-4.0.0.tar.gz && \
cd openmpi-4.0.0 && \
./configure --prefix=/opt/ompi --with-verbs=/usr && \
make -j $(nproc) all && \
make install && \
rm -rf /tmp/openmpi