-
Notifications
You must be signed in to change notification settings - Fork 52
/
xenial_openmpi.def
34 lines (29 loc) · 1.05 KB
/
xenial_openmpi.def
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
# Copyright (c) 2015-2016, Gregory M. Kurtzer. All rights reserved.
#
# "Singularity" Copyright (c) 2016, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory (subject to receipt of any
# required approvals from the U.S. Dept. of Energy). All rights reserved.
BootStrap: debootstrap
OSVersion: xenial
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
%runscript
echo "This is what happens when you run the container..."
%post
sed -i 's/$/ universe/' /etc/apt/sources.list
apt-get update
apt-get -y install build-essential
apt-get -y install libmlx4-dev
apt-get -y install libmlx5-dev
apt-get -y install libibverbs-dev
apt-get -y install ibverbs-utils
apt-get -y install libopenmpi-dev
apt-get -y install openmpi-bin
apt-get -y install openmpi-common
apt-get -y install git
cd /tmp
git clone https://github.com/gjbex/training-material.git
cd training-material/Mpi/HybridPi/
make clean pi_mpi.exe
cp pi_mpi.exe /usr/bin/
cd /tmp
rm -rf training-material/