-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebian_8-openmpi_3.def
40 lines (27 loc) · 1.04 KB
/
debian_8-openmpi_3.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
35
36
37
38
39
Bootstrap: localimage
From: /lustre/rz/kresan/debian_8-base.sif
%post
git clone https://github.com/ChristianTackeGSI/FairSoft.git
cd FairSoft
git checkout pr/virgo
git submodule update --init
. ./spack/share/spack/setup-env.sh
spack repo add .
export FORCE_UNSAFE_CONFIGURE=1
spack bootstrap
. ./spack/share/spack/setup-env.sh
spack install -j 48 [email protected]
spack load [email protected]
spack compiler find
spack install -j 48 [email protected] schedulers=slurm +pmi +thread_multiple +legacylaunchers fabrics=verbs \
^slurm@18-08-9-1 +pmix sysconfdir=/etc/slurm ^[email protected] ^[email protected] localstatedir=/var
mkdir /view
spack view --verbose symlink -i /view/gcc8.1.0 [email protected]
spack view --verbose --dependencies true symlink -i /view/openmpi3.1.0_gcc8.1.0 [email protected]
mkdir -p /etc/slurm
useradd --system munge
useradd --system slurm
%environment
export LC_ALL=C
export PATH=/view/openmpi3.1.0_gcc8.1.0/bin:/view/gcc8.1.0/bin:$PATH
export LD_LIBRARY_PATH=/view/openmpi3.1.0_gcc8.1.0/lib:/view/openmpi3.1.0_gcc8.1.0/lib64:/view/gcc8.1.0/lib64:$LD_LIBRARY_PATH