-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity
65 lines (46 loc) · 2.07 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
57
58
59
60
61
62
63
64
65
Bootstrap: docker
From: fedora:28
%files
build.sh /build.sh
mkl_silent.cfg /mkl_silent.cfg
%environment
INTEL_MKL=l_mkl_2018.2.199.tgz
SUITESPARSE=SuiteSparse-4.2.2.tar.gz
HYPRE=hypre-2.11.2.tar.gz
PHOTON=photon-1.1.tar.bz2
%post
dnf -y install curl git paraview cmake cpio libXaw gcc autoconf dh-autoreconf pkgconf gcc-c++ gcc-gfortran glibc glibc-devel libibverbs rdma-core-devel rdma-core infiniband-diags infiniband-diags-devel byacc libibverbs-devel librdmacm-devel wget file unzip
export INTEL_MKL=l_mkl_2018.2.199.tgz
export SUITESPARSE=SuiteSparse-4.5.5.tar.gz
export HYPRE=hypre-2.11.2.tar.gz
export MVAPICH=mvapich2-2.2.tar.gz
export PHOTON=photon-1.1.tar.bz2
# Obtaining necessary software
curl -O http://kanar.open.sice.indiana.edu/images/$INTEL_MKL
curl -O http://kanar.open.sice.indiana.edu/images/$PHOTON
curl -O http://faculty.cse.tamu.edu/davis/SuiteSparse/$SUITESPARSE
curl -O http://mvapich.cse.ohio-state.edu/download/mvapich/mv2/$MVAPICH
curl -Ok https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods/download/$HYPRE
# Obtaining PGFem3D and components
wget -O pgfem-3d.zip https://github.com/C-SWARM/pgfem-3d/archive/develop.zip
unzip pgfem-3d.zip
mv /pgfem-3d-develop /pgfem_3d
[ ! -d /ttl ] && git clone -b develop https://github.com/C-SWARM/ttl.git
[ ! -d /gcm ] && git clone -b develop https://github.com/C-SWARM/gcm.git
tar -xf $MVAPICH
cd ${MVAPICH%.tar.gz}
./configure --prefix=/mvapich --disable-wrapper-rpath
make -j 4 install
PATH=$PATH:/mvapich/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mvapich/lib
export PATH=$PATH:/mvapich/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mvapich/lib
cd -
# Building software components and PGFem3D
bash /build.sh
rm $SUITESPARSE $INTEL_MKL $HYPRE $MVAPICH $PHOTON mkl_silent.cfg build.sh pgfem-3d.zip
%runscript
exec /pgfem_3d/deploy/bin/PGFem3D "$@"
%labels
Maintainer Cody Kankel <ckankel@nd.edu>, Ezra Kissel <ezkissel@indiana.edu>
Version 1.0