-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity
56 lines (48 loc) · 2.17 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
BootStrap:docker
From:fedora:latest
%post
dnf update -y && \
dnf remove -y vim-minimal python sqlite && \
dnf install -y boost boost-devel clang cmake cppcheck eigen3-devel findutils gcc gcc-c++ \
git gmsh gmsh-devel hdf5 hdf5-devel kernel-devel \
make sqlite sqlite-devel tar valgrind vim \
voro++ voro++-devel vtk vtk-devel wget && \
dnf clean all
wget https://developer.download.nvidia.com/compute/cuda/repos/fedora23/x86_64/cuda-repo-fedora23-8.0.61-1.x86_64.rpm
dnf install -y ./cuda-repo-fedora23-8.0.61-1.x86_64.rpm
dnf install -y cuda
dnf clean all
export MKL_VER=l_mkl_2017.2.174
echo "
export MKL_VER=l_mkl_2017.2.174" >> /environment
cd /tmp && \
wget http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/11306/${MKL_VER}.tgz && \
tar xzf ${MKL_VER}.tgz && \
cd ${MKL_VER} && \
sed -i 's/ACCEPT_EULA=decline/ACCEPT_EULA=accept/g' silent.cfg && \
sed -i 's/ACTIVATION_TYPE=exist_lic/ACTIVATION_TYPE=trial_lic/g' silent.cfg && \
./install.sh -s silent.cfg && \
cd .. && rm -rf ${MKL_VER}*
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux
source /opt/intel/mkl/bin/mklvars.sh intel64
export TBB_VERSION=2017_20160916
echo "
export TBB_VERSION=2017_20160916" >> /environment
export TBB_DOWNLOAD_URL=https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb${TBB_VERSION}oss_lin.tgz
echo "
export TBB_DOWNLOAD_URL=https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb${TBB_VERSION}oss_lin.tgz" >> /environment
export TBB_INSTALL_DIR=/opt
echo "
export TBB_INSTALL_DIR=/opt" >> /environment
wget ${TBB_DOWNLOAD_URL} \
&& tar -C ${TBB_INSTALL_DIR} -xf tbb${TBB_VERSION}oss_lin.tgz \
&& rm tbb${TBB_VERSION}oss_lin.tgz
sed -i "s%SUBSTITUTE_INSTALL_DIR_HERE%${TBB_INSTALL_DIR}/tbb${TBB_VERSION}oss%" ${TBB_INSTALL_DIR}/tbb${TBB_VERSION}oss/bin/tbbvars.*
echo "
source /opt/tbb2017_20160916oss/bin/tbbvars.sh intel64
export TBB_VERSION=0
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux
source /opt/intel/mkl/bin/mklvars.sh intel64" >> /environment
mkdir -p /research && cd /research
%runscript
/bin/bash "$@"