Debian Codegraph @

sampleScripts/Sandia-SEMS/configure-testbeds

raw
1 #!/bin/bash
2
3 # This script expects testbed (not SEMS!) modules to be loaded already.
4
5 #Set path to Trilinos:
6 TRILINOS_PATH=${HOME}/Trilinos
7
8 # You could load a devpack here, but for now assume it was loaded.
9 # module load devpack
10
11 # Set up backends for Trilinos
12 export CUDA=OFF
13 export OPENMP=ON
14 export PTHREAD=OFF
15 export SERIAL=OFF
16 export COMPLEX=OFF
17
18 # Set up Architecture
19
20 # If you want Intel Sandy Bridge or Ivy Bridge, uncomment the lines
21 # below (up to but not including "Intel Haswell"), if they are not
22 # already uncommented. (This one has not yet been tested. All the
23 # others have been tested.)
24
25 #Intel SandyBridge / IvyBridge
26 export ARCH="SNB"
27 export ARCH_CXX_FLAG="-mavx"
28 export ARCH_C_FLAG="-mavx"
29 export BLAS_LIBRARIES="-lblas"
30 export LAPACK_LIBRARIES="-llapack"
31
32 # If you want Intel Haswell, uncomment the lines below (up to but not
33 # including "Intel KNL"), if they are not already uncommented.
34
35 #Intel Haswell
36 #export ARCH="HSW"
37 #export ARCH_CXX_FLAG="-xCORE-AVX2 -mkl"
38 #export ARCH_C_FLAG="-xCORE-AVX2 -mkl"
39 #export BLAS_LIBRARIES="-mkl;${MKLROOT}/lib/intel64/libmkl_intel_lp64.a;${MKLROOT}/lib/intel64/libmkl_intel_thread.a;${MKLROOT}/lib/intel64/libmkl_core.a"
40 #export LAPACK_LIBRARIES=${BLAS_LIBRARIES}
41
42 # If you want KNL, uncomment the lines below (up to but not including
43 # "IBM Power8"), if they are not already uncommented.
44
45 #Intel KNL
46 #export ARCH="KNL"
47 #export ARCH_CXX_FLAG="-xMIC-AVX512 -mkl"
48 #export ARCH_C_FLAG="-xMIC-AVX512 -mkl"
49 #export BLAS_LIBRARIES="-mkl;${MKLROOT}/lib/mic/libmkl_intel_lp64.a;${MKLROOT}/lib/mic/libmkl_intel_thread.a;${MKLROOT}/lib/mic/libmkl_core.a"
50 #export LAPACK_LIBRARIES=${BLAS_LIBRARIES}
51
52 # If you want IBM Power8 withOUT GPUs, uncomment the lines below (up
53 # to but not including "IBM Power8 + NVIDIA K80"), if they are not
54 # already uncommented.
55
56 #IBM Power8:
57 #export ARCH="Power8"
58 #export ARCH_CXX_FLAG="-mcpu=power8"
59 #export ARCH_C_FLAG="-mcpu=power8"
60 #export BLAS_LIBRARIES="${BLAS_ROOT}/lib/libblas.a;gfortran;gomp"
61 #export LAPACK_LIBRARIES="${LAPACK_ROOT}/lib/liblapack.a;gfortran;gomp"
62
63 # If you want IBM Power8 with K80 GPUs, uncomment the lines below (up
64 # to but not including "IBM Power8 + NVIDIA P100"), if they are not
65 # already uncommented.
66
67 #IBM Power8 + NVIDIA K80
68 #export ARCH="Power8;Kepler37"
69 #export OMPI_CXX=${TRILINOS_PATH}/packages/kokkos/bin/nvcc_wrapper
70 #export ARCH_CXX_FLAG="-mcpu=power8 -arch=sm_37"
71 #export ARCH_C_FLAG="-mcpu=power8"
72 #export BLAS_LIBRARIES="${BLAS_ROOT}/lib/libblas.a;gfortran;gomp"
73 #export LAPACK_LIBRARIES="${LAPACK_ROOT}/lib/liblapack.a;gfortran;gomp"
74
75 # If you want IBM Power8 with P100 GPUs, uncomment the lines below (up
76 # to but not including "Set up Tests/Examples"), if they are not
77 # already uncommented.
78
79 #IBM Power8 + NVIDIA P100
80 #export ARCH="Power8;Pascal60"
81 #export OMPI_CXX=${TRILINOS_PATH}/packages/kokkos/bin/nvcc_wrapper
82 #export ARCH_CXX_FLAG="-mcpu=power8 -arch=sm_60"
83 #export ARCH_C_FLAG="-mcpu=power8"
84 #export BLAS_LIBRARIES="${BLAS_ROOT}/lib/libblas.a;gfortran;gomp"
85 #export LAPACK_LIBRARIES="${LAPACK_ROOT}/lib/liblapack.a;gfortran;gomp"
86
87
88 # Set up Tests/Examples
89
90 export TESTS=ON
91 export EXAMPLES=ON
92
93
94 # Set up number of OpenMP Threads:
95
96 export OMP_NUM_THREADS=8
97
98
99
100 ###############################################
101 ###############################################
102 # Don't change things below
103 ###############################################
104 ###############################################
105
106 # This sets Jenkins-related environment variables. It's for the
107 # script below, which expects those environment variables to be set,
108 # even if not running Jenkins.
109
110 export JENKINS_DO_CUDA=${CUDA}
111 export JENKINS_DO_OPENMP=${OPENMP}
112 export JENKINS_DO_PTHREAD=${PTHREAD}
113 export JENKINS_DO_SERIAL=${SERIAL}
114 export JENKINS_DO_COMPLEX=${COMPLEX}
115
116 export JENKINS_ARCH=${ARCH}
117 export JENKINS_ARCH_CXX_FLAG=${ARCH_CXX_FLAG}
118 export JENKINS_ARCH_C_FLAG=${ARCH_C_FLAG}
119
120 export JENKINS_DO_TESTS=${TESTS}
121 export JENKINS_DO_EXAMPLES=${EXAMPLES}
122
123 # This actually runs CMake.
124
125 source ${TRILINOS_PATH}/sampleScripts/Sandia-SEMS/configure-testbeds-jenkins
126