-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity
35 lines (30 loc) · 1.08 KB
/
Singularity
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
BootStrap: debootstrap
OSVersion: stable
MirrorURL: http://ftp.us.debian.org/debian/
%runscript
source /.singularity.d/env/90-environment.sh
cd /tmp
if [[ $# -eq 0 ]]; then
echo "Single node run on 4 cores, should take ~40 secs real, ~2mins30 user..."
time mpirun -n 4 mdrun_mpi.openmpi -s /data/ion_channel.tpr -maxh 0.50 -noconfout -nsteps 500 -g logfile -v
else
echo "Multi node run on 2 nodes, 2 cores should take ~40 secs real, ~2mins30 user..."
time mpirun --oversubscribe -H "$1" -np 4 mdrun_mpi.openmpi -s /data/ion_channel.tpr -maxh 0.50 -noconfout -nsteps 500 -g logfile -v
fi
%environment
echo "### Setting up shell environment ..."
echo
unset LANG; export LC_ALL="C"; export MKL_NUM_THREADS=1; export OMP_NUM_THREADS=1
%setup
mkdir -p ${SINGULARITY_ROOTFS}/data
%post
echo "Hello from inside the container"
apt-get update
apt-get -y --force-yes install vim gromacs gromacs-openmpi libipathverbs1 ssh
mv /usr/bin/ssh /usr/bin/ssh_orig
mv /usr/bin/ssh_wrapper.sh /usr/bin/ssh
ln -sf bash /bin/sh
%files
README.md /README.md
ssh_wrapper.sh /usr/bin/ssh_wrapper.sh
ion_channel.tpr /data/