-
Notifications
You must be signed in to change notification settings - Fork 0
/
hpcc_umb_runtest.bash
executable file
·307 lines (257 loc) · 7.83 KB
/
hpcc_umb_runtest.bash
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
#!/bin/bash
#
# crontab prescription of HPC UMB BB cluster
#---------------------------------------------
#
#30 01 * * 1,2,3,4,5,6,7 MT=/home/milias/Work/qch/software/software_projects/mathlibs-tester; cd $MT; nohup $MT/cdash_scripts/hpcc_umb_runtest.bash > $MT/buildup.log 2>&1
#
#
echo "Working host is: "; hostname -f
source /mnt/apps/intel/bin/compilervars.sh intel64
echo "Intel Fortran/C/C++ noncommercial compilers with MKL library activated, PROD_DIR=$PROD_DIR."
source /mnt/apps/pgi/environment.sh
echo "Portlang Group compilers activated ! PGI=$PGI"
echo "My PATH=$PATH"
echo "Running on host `hostname`"
echo "Time is `date`"
echo "Directory is `pwd`"
# Define number of processors
NPROCS=`cat /proc/cpuinfo | grep processor | wc -l`
echo "This node has $NPROCS CPUs."
timestamp1=`date +\%F_\%k-\%M-\%S`; timestamp=${timestamp1// /};
echo -e "\n\n Running cdash buildups at "$timestamp ; echo -e "\n\n"
export MATH_ROOT=/mnt/apps/intel/mkl; echo "Activated MATH_ROOT=$MATH_ROOT"
export LC_ALL=C
#export MKL_NUM_THREADS=${NPROCS}
export MKL_NUM_THREADS=1
export MKL_DYNAMIC="FALSE"
export OMP_NUM_THREADS=1
#
cd /tmp/.
if [[ -d "mathlibs-tester" ]]; then
echo "deleting previous clone of mathlibs-tester"
/bin/rm -rf mathlibs-tester
fi
echo "cloning the mathlibs-tester ..."
git clone git@github.com:miroi/mathlibs-tester.git
cd mathlibs-tester
#cd cmake
#python update.py --self
#python update.py ..
# return to the main directory
#cd ..
###################################
#
# GNU gfortran compiler
#
###################################
BUILD=build_gfortran_atlas_dynamic
python ./setup --fc=gfortran --cmake-options="-DMATH_LIB_SEARCH_ORDER=ATLAS -D BUILDNAME='HPC-UMB_gfortran_atlas_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_gfortran_atlas_static
python ./setup --fc=gfortran --static --cmake-options="-DMATH_LIB_SEARCH_ORDER=ATLAS -D BUILDNAME='HPC-UMB_gfortran_atlas_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_gfortran_system_native_dynamic
python ./setup --fc=gfortran --cmake-options="-DMATH_LIB_SEARCH_ORDER=SYSTEM_NATIVE -D BUILDNAME='HPC-UMB_gfortran_systemnative_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_gfortran_system_native_static
python ./setup --fc=gfortran --static --cmake-options="-DMATH_LIB_SEARCH_ORDER=SYSTEM_NATIVE -D BUILDNAME='HPC-UMB_gfortran_systemnative_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_gfortran_openblas_systemnative_dynamic
python ./setup --fc=gfortran --cmake-options="-DMATH_LIB_SEARCH_ORDER='OPENBLAS;SYSTEM_NATIVE' -D BUILDNAME='HPC-UMB_gfortran_openblas_sysnative_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_gfortran_openblas_systemnative_static
python ./setup --static --fc=gfortran --cmake-options="-DMATH_LIB_SEARCH_ORDER='OPENBLAS;SYSTEM_NATIVE' -D BUILDNAME='HPC-UMB_gfortran_openblas_sysnative_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
#######################################################
#
# Intel ifort compiler
#
#######################################################
BUILD=build_ifort_mkl_int64_dynamic
python ./setup --fc=ifort --int64 --cmake-options="-DMATH_LIB_SEARCH_ORDER='MKL' -D BUILDNAME='HPC-UMB_ifort_mkl_i8_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_ifort_mkl_int64_static
python ./setup --static --fc=ifort --int64 --cmake-options="-DMATH_LIB_SEARCH_ORDER='MKL' -D BUILDNAME='HPC-UMB_ifort_mkl_i8_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_ifort_mkl_dynamic
python ./setup --fc=ifort --cmake-options="-DMATH_LIB_SEARCH_ORDER='MKL' -D BUILDNAME='HPC-UMB_ifort_mkl_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_ifort_mkl_static
python ./setup --static --fc=ifort --cmake-options="-DMATH_LIB_SEARCH_ORDER='MKL' -D BUILDNAME='HPC-UMB_ifort_mkl_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_ifort_atlas_dynamic
python ./setup --fc=ifort --cmake-options="-DMATH_LIB_SEARCH_ORDER='ATLAS' -D BUILDNAME='HPC-UMB_ifort_atlas_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_ifort_atlas_static
python ./setup --static --fc=ifort --cmake-options="-DMATH_LIB_SEARCH_ORDER='ATLAS' -D BUILDNAME='HPC-UMB_ifort_atlas_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_ifort_systemnative_dynamic
python ./setup --fc=ifort --cmake-options="-DMATH_LIB_SEARCH_ORDER='SYSTEM_NATIVE' -D BUILDNAME='HPC-UMB_ifort_systemnative_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_ifort_systemnative_static
python ./setup --static --fc=ifort --cmake-options="-DMATH_LIB_SEARCH_ORDER='SYSTEM_NATIVE' -D BUILDNAME='HPC-UMB_ifort_systemnative_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
######################################################################
#
# PGI pgf90 compiler
#
######################################################################
BUILD=build_pgf90_mkl_int64_dynamic
python ./setup --fc=pgf90 --int64 --cmake-options="-DMATH_LIB_SEARCH_ORDER='MKL' -D BUILDNAME='HPC-UMB_pgf90_mkl_i8_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_pgf90_mkl_int64_static
python ./setup --fc=pgf90 --int64 --static --cmake-options="-DMATH_LIB_SEARCH_ORDER='MKL' -D BUILDNAME='HPC-UMB_pgf90_mkl_i8_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_pgf90_mkl_dynamic
python ./setup --fc=pgf90 --cmake-options="-DMATH_LIB_SEARCH_ORDER='MKL' -D BUILDNAME='HPC-UMB_pgf90_mkl_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_pgf90_mkl_static
python ./setup --fc=pgf90 --static --cmake-options="-DMATH_LIB_SEARCH_ORDER='MKL' -D BUILDNAME='HPC-UMB_pgf90_mkl_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_pgf90_atlas_dynamic
python ./setup --fc=pgf90 --cmake-options="-DMATH_LIB_SEARCH_ORDER='ATLAS;MKL' -D BUILDNAME='HPC-UMB_pgf90_atlas_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_pgf90_atlas_static
python ./setup --fc=pgf90 --static --cmake-options="-DMATH_LIB_SEARCH_ORDER='ATLAS;MKL' -D BUILDNAME='HPC-UMB_pgf90_atlas_static' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_pgf90_systemnative_dynamic
python ./setup --fc=pgf90 --cmake-options="-DMATH_LIB_SEARCH_ORDER='SYSTEM_NATIVE;ATLAS;MKL' -D BUILDNAME='HPC-UMB_pgf90_systemnative_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
BUILD=build_pgf90_systemnative_static
python ./setup --fc=pgf90 --static --cmake-options="-DMATH_LIB_SEARCH_ORDER='SYSTEM_NATIVE;ATLAS;MKL' -D BUILDNAME='HPC-UMB_pgf90_systemnative_dynamic' " $BUILD
cd $BUILD
make VERBOSE=1
ls -lt bin/example
ldd bin/example
bin/example
make Experimental
cd ..
echo -e "\n\n All tests finished at `date`"
exit 0