-
Notifications
You must be signed in to change notification settings - Fork 6
/
anvil_tests.sh
52 lines (49 loc) · 1.17 KB
/
anvil_tests.sh
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
echo "Compiler $compiler on target $target"
case $compiler in
gfortran)
module load gcc/7.2.0
export CC=gcc
export F77=gfortran
export FC=gfortran
;;
gfortran-debug)
module load gcc/7.2.0
export CC=gcc
export F77=gfortran
export FC=gfortran
export CFLAGS="-g -O2 -Wall -pedantic -fno-omit-frame-pointer -fopenmp"
export CXXFLAGS="-g -O2 -Wall -pedantic fno-omit-frame-pointer -fopenmp"
export FFLAGS="-g -O2 -Wall -pedantic -fcheck=all -fbacktrace -fno-omit-frame-pointer -finit-real=nan -finit-integer=-9999 -fopenmp"
;;
ifort)
module load intel/2017.4
export CC=icc
export F77=ifort
export FC=ifort
;;
nagfor)
module load gcc/7.2.0
module load nag/6.2
export CC=gcc
export F77=nagfor
export FC=nagfor
;;
nagfor-debug)
module load gcc/7.2.0
module load nag/6.2
export CC=gcc
export F77=nagfor
export FC=nagfor
export FFLAGS="-g -nan -C=all -C=undefined -u -ieee=full -kind=unique"
esac
#module load cmake/3.3.1 openblas/0.2.14
module load cmake/3.7.2 blas/3.5.0 lapack/3.5.0
export BLAS_LIBRARIES=-lopenblas
case $compiler in
nagfor-debug)
./makebuild_fortran.sh
;;
*)
./makebuild.sh
;;
esac