forked from nwchemgit/nwchem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
300 lines (277 loc) · 8.53 KB
/
.gitlab-ci.yml
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
stages:
- build
- test
variables:
USE_MPI: Y
USE_NOIO: 1
USE_LIBXC: 1
NWCHEM_MODULES: "all python"
OMP_NUM_THREADS: 1
NWCHEM_LONG_PATHS: Y
GIT_CLEAN_FLAGS: -ffdx -e bin
GIT_DEPTH: 32
.linuxrhel6_template: &beforescript_linuxrhel6
before_script:
- module purge
- export LD_LIBRARY_PATH=/usr/lib/mpich/lib
- export PATH=/usr/lib/mpich/bin:/bin:/usr/bin:.
- export NWCHEM_TARGET=LINUX
.linuxubuntu_template: &beforescript_linuxubuntu
before_script:
- export NWCHEM_TARGET=LINUX
- export PATH=/home/edo/apps/mpich314_i686/bin:/usr/bin:/bin:.
- export LD_LIBRARY_PATH=/home/edo/apps/mpich314_i686/lib:/home/edo/apps/OpenBLAS.i386/lib
.compile_template: &compile_step
script:
- if [ "$(lsb_release -i|cut -c 17-)" == "CentOS" ]; then export USE_CENTOS="1" ; else export USE_CENTOS="0" ; fi
- if [ "$(lsb_release -i |cut -f 2)" == "Ubuntu" ] && [ "$(lsb_release -r|cut -c10-11)" == "16" ]; then SCALAPACK_LIB="-lscalapack-openmpi -lblacsCinit-openmpi -lblacs-openmpi -lopenblas"; fi
- env |grep CI_
- printenv PATH
- printenv LD_LIBRARY_PATH || true
- env|grep MPI || true
- which mpif90
- env|egrep BLAS
- env|egrep SCALAP || true
- env|egrep -i mkl || true
- export NWCHEM_TOP=$CI_PROJECT_DIR
- if [ "$(lsb_release -i|cut -c 17-)" == "CentOS" ]; then export NWCHEM_TOP=$HOME/$CI_PROJECT_DIR ; fi
- cd $NWCHEM_TOP/src
- rm -rf tools/ga-* ||true
- rm -rf libext/libext_utils/cmake*macos* || true
- make nwchem_config
- make -j3
- ../contrib/getmem.nwchem
only:
- master
- /^release-.*$/
- /^hotfix/.*$/
# except:
# changes:
# - ".travis.yml"
# - "travis/*"
.test_template: &test_step
variables:
GIT_CLEAN_FLAGS: -ffdx -e bin -e build -e install
script:
# - if [ "$FC" == "ifort" ]; then source /opt/intel/compilers_and_libraries_2019/linux/bin/compilervars.sh intel64 ; fi
# - if [ "$FC" == "ifx" ]; then source /opt/intel/oneapi/setvars.sh ; fi
- export NWCHEM_TOP=$CI_PROJECT_DIR
- if [ "$(lsb_release -i|cut -c 17-)" == "CentOS" ]; then export USE_CENTOS="1" ; else export USE_CENTOS="0" ; fi
- if [ "$USE_CENTOS" == "1" ]; then export NWCHEM_TOP=$HOME/$CI_PROJECT_DIR ; fi
- if [ "$USE_CENTOS" == "1" ]; then mkdir -p $NWCHEM_TOP/bin/LINUX64 ; scp -p [email protected]:gitlab/nwchem_centos8 $NWCHEM_TOP/bin/LINUX64/nwchem ; fi
- if [ "$FC" == "ifort" ]; then export NWCHEM_EXECUTABLE=${NWCHEM_TOP}/../binaries/nwchem_intel; fi
- if [ "$FC" == "ifx" ]; then export NWCHEM_EXECUTABLE=${NWCHEM_TOP}/../binaries/nwchem_ifx; fi
- if [ "$FC" == "flang" ]; then export NWCHEM_EXECUTABLE=${NWCHEM_TOP}/../binaries/nwchem_flang; fi
- env|egrep -i mkl || true
- env|egrep LD_LIBR || true
- cd $NWCHEM_TOP/QA
- NNPROCS=1
- if [ "$(uname -s)" == "Darwin" ]; then NNPROCS=3; fi
- if [ "$(uname -s)" == "Linux" ]; then NNPROCS=3; fi
- if [ "$USE_CENTOS" == "1" ]; then NNPROCS=3; fi
- env | grep CI_ || true
- env | grep PATH || true
- which mpirun || true
- if [[ "$NWCHEM_TARGET" != "LINUX" && "$FC" != "ifx" && ( "$CI_RUNNER_TAGS" == "ubuntu_xenial" || "$CI_RUNNER_TAGS" == "ubuntu_bionic" || "$CI_RUNNER_TAGS" = "macos" ) ]]; then ./doqmtests.mpi $NNPROCS ; else ./doqmtests.mpi $NNPROCS fast ; fi
only:
- master
- /^release-.*$/
- /^hotfix/.*$/
# except:
# changes:
# - ".travis.yml"
# - "travis/*"
.intel_template: &intel_sourcing
before_script:
- export NWCHEM_TOP=$CI_PROJECT_DIR
# - source /opt/intel/compilers_and_libraries_2019/linux/bin/compilervars.sh intel64
- source /opt/intel/oneapi/setvars.sh
- export NWCHEM_EXECUTABLE=${NWCHEM_TOP}/../binaries/nwchem_intel
- export PYTHONVERSION=3.8
- export FC=ifort
.intel_template: &ifx_sourcing
before_script:
- export NWCHEM_TOP=$CI_PROJECT_DIR
- source /opt/intel/oneapi/setvars.sh
- export NWCHEM_EXECUTABLE=${NWCHEM_TOP}/../binaries/nwchem_ifx
- export PYTHONVERSION=3.8
- export FC=ifx
.flang_template: &flang_sourcing
before_script:
- source /data/opt/AMD/setenv_AOCC.sh
- export LD_LIBRARY_PATH=/home/edo/apps/ompi402.flang/lib:$LD_LIBRARY_PATH
- export PATH=/home/edo/apps/ompi402.flang/bin:$PATH
- export NWCHEM_EXECUTABLE=${NWCHEM_TOP}/../binaries/nwchem_flang
- export FC=flang
.centos8_template: ¢os8_sourcing
before_script:
- export LD_LIBRARY_PATH=/usr/lib64/mpich/lib
- export PATH=/usr/lib64/mpich/bin/:/usr/bin:/bin:.
linux64_centos8:build_gcc:
stage: build
<<: *centos8_sourcing
<<: *compile_step
variables:
BLAS_SIZE: 8
SCALAPACK_SIZE: 8
BUILD_OPENBLAS: 1
BUILD_SCALAPACK: 1
PATH: "/usr/lib64/mpich/bin/:/usr/bin:/bin:."
ARMCI_NETWORK: "MPI-TS"
after_script:
- export NWCHEM_TOP=$HOME/$CI_PROJECT_DIR
- scp -p ${NWCHEM_TOP}/bin/LINUX64/nwchem [email protected]:gitlab/nwchem_centos8
tags:
- centos8
linux64_ubuntu:build_gcc:
stage: build
<<: *compile_step
variables:
# BLAS_LIB: "-lopenblas"
# LAPACK_LIB: "-lopenblas"
# SCALAPACK_LIB: "-lscalapack-openmpi -lopenblas"
BUILD_SCALAPACK: 1
BUILD_OPENBLAS: 1
BLAS_SIZE: 8
SCALAPACK_SIZE: 8
USE_OPENMP: 1
ARMCI_NETWORK: "MPI-PR"
tags:
- ubuntu_xenial
linux64_ubuntu:build_flang:
stage: build
<<: *flang_sourcing
<<: *compile_step
variables:
FC: flang
BUILD_SCALAPACK: 1
BUILD_OPENBLAS: 1
BLAS_SIZE: 8
SCALAPACK_SIZE: 8
ARMCI_NETWORK: "MPI-PR"
after_script:
- export NWCHEM_TOP=$CI_PROJECT_DIR
- echo "NWCHEM_TOP is " $NWCHEM_TOP
- mkdir -p ${NWCHEM_TOP}/../binaries || true
- cp ${NWCHEM_TOP}/bin/LINUX64/nwchem ${NWCHEM_TOP}/../binaries/nwchem_flang
tags:
- ubuntu_bionic
linux64_ubuntu:build_intel:
stage: build
<<: *intel_sourcing
<<: *compile_step
variables:
FC: ifort
BLAS_SIZE: 8
SCALAPACK_SIZE: 8
BUILD_SCALAPACK: 1
BUILD_OPENBLAS: 1
ARMCI_NETWORK: "MPI-PR"
USE_FPICF: "Y"
after_script:
- export NWCHEM_TOP=$CI_PROJECT_DIR
- echo "NWCHEM_TOP is " $NWCHEM_TOP
- mkdir -p ${NWCHEM_TOP}/../binaries || true
- cp ${NWCHEM_TOP}/bin/LINUX64/nwchem ${NWCHEM_TOP}/../binaries/nwchem_intel
tags:
- ubuntu_bionic
linux64_ubuntu:build_ifx:
stage: build
<<: *ifx_sourcing
<<: *compile_step
variables:
FC: ifort
BLAS_SIZE: 8
SCALAPACK_SIZE: 8
BUILD_SCALAPACK: 1
BUILD_OPENBLAS: 1
ARMCI_NETWORK: "SOCKETS"
USE_FPICF: "Y"
after_script:
- export NWCHEM_TOP=$CI_PROJECT_DIR
- echo "NWCHEM_TOP is " $NWCHEM_TOP
- mkdir -p ${NWCHEM_TOP}/../binaries || true
- cp ${NWCHEM_TOP}/bin/LINUX64/nwchem ${NWCHEM_TOP}/../binaries/nwchem_ifx
tags:
- ubuntu_bionic
linux_ubuntu:build_gcc:
stage: build
<<: *beforescript_linuxubuntu
<<: *compile_step
variables:
PATH: "/home/edo/apps/mpich314_i686/bin:/usr/bin:/bin:."
LD_LIBRARY_PATH: "/home/edo/apps/mpich314_i686/lib"
NWCHEM_MODULES: "all"
BUILD_SCALAPACK: 1
BUILD_OPENBLAS: 1
BLAS_SIZE: 4
SCALAPACK_SIZE: 4
ARMCI_NETWORK: "MPI-PR"
tags:
- ubuntu_xenial
linux_ubuntu:run_gcc:
stage: test
needs: ["linux_ubuntu:build_gcc"]
<<: *beforescript_linuxubuntu
<<: *test_step
tags:
- ubuntu_xenial
macos:build_gcc:
stage: build
<<: *compile_step
variables:
# BLASOPT: "-L/usr/local/opt/openblas/lib -lopenblas"
# LAPACK_LIB: "-L/usr/local/opt/openblas/lib -lopenblas"
# SCALAPACK_LIB: "-L/usr/local/opt/scalapack/lib/ -lscalapack -L/usr/local/opt/openblas/lib -lopenblas"
BUILD_SCALAPACK: 1
BUILD_OPENBLAS: 1
BLAS_SIZE: 8
SCALAPACK_SIZE: 8
ARMCI_NETWORK: "MPI-PR"
USE_DCOMBSSQPATCH: "Y"
PATH: "/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
tags:
- macos
#
linux64_centos8:run_gcc:
stage: test
needs: ["linux64_centos8:build_gcc"]
<<: *centos8_sourcing
<<: *test_step
tags:
- centos8
linux64_ubuntu:run_gcc:
stage: test
needs: ["linux64_ubuntu:build_gcc"]
<<: *test_step
tags:
- ubuntu_xenial
linux64_ubuntu:run_flang:
stage: test
needs: ["linux64_ubuntu:build_flang"]
<<: *flang_sourcing
<<: *test_step
tags:
- ubuntu_bionic
linux64_ubuntu:run_intel:
stage: test
needs: ["linux64_ubuntu:build_intel"]
<<: *intel_sourcing
<<: *test_step
tags:
- ubuntu_bionic
linux64_ubuntu:run_ifx:
stage: test
needs: ["linux64_ubuntu:build_ifx"]
<<: *ifx_sourcing
<<: *test_step
tags:
- ubuntu_bionic
macos:run_gcc:
stage: test
needs: ["macos:build_gcc"]
variables:
PATH: "/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
<<: *test_step
tags:
- macos