-
Notifications
You must be signed in to change notification settings - Fork 76
/
.gitlab-ci.yml
108 lines (97 loc) · 3.06 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
before_script:
#- export http_proxy=http://proxyout.lanl.gov:8080
#- export HTTP_PROXY=http://proxyout.lanl.gov:8080
#- export https_proxy=https://proxyout.lanl.gov:8080
#- export HTTPS_PROXY=https://proxyout.lanl.gov:8080
- . /mnt/local/ssd/vpic/spack/share/spack/setup-env.sh
- . $(spack location -i lmod)/lmod/lmod/init/zsh
- . /mnt/local/ssd/vpic/spack/share/spack/setup-env.sh
- module unuse /mnt/local/ssd/vpic/spack/share/spack/modules/linux-centos7-x86_64
- module use /mnt/local/ssd/vpic/spack/share/spack/lmod/linux-centos7-x86_64
stages:
- build_intel
- build_gcc
# TODO: add werror build
# TODO: Add v8/v16/etc
.build_gcc:
variables:
GIT_SUBMODULE_STRATEGY: recursive
stage: build_gcc
script:
- module load Core/gcc/8.2.0-sxbf4jq
- module load cmake/3.13.3-zd4lpat
- module load openmpi/3.1.3-atscp4j
- module load python/2.7.15-tjspyxf.lua
- module load py-numpy/1.15.2-2a32t54
- module load py-scipy/1.1.0-dodzcv6
- j="$(grep -c processor /proc/cpuinfo 2>/dev/null)" || j=0; ((j++))
- build_dir=build-${CI_JOB_NAME}-${CI_JOB_ID}
- mkdir -p ${build_dir}
- pushd ${build_dir}
- CC=${_CC} CXX=${_CXX} cmake
-DENABLE_INTEGRATED_TESTS=ON
-DENABLE_UNIT_TESTS=ON
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DENABLE_LONG_TESTS=ON
..
- make -j ${j} -l ${l} VERBOSE=1
- make test CTEST_OUTPUT_ON_FAILURE=1
- make install DESTDIR=${PWD}/install
.build_intel:
variables:
GIT_SUBMODULE_STRATEGY: recursive
stage: build_intel
script:
- module load Core/gcc/8.2.0-sxbf4jq
- module load gcc/8.2.0/cmake/3.13.3-zd4lpat
- module load python/2.7.15-tjspyxf.lua
- module load py-numpy/1.15.2-2a32t54
- module load py-scipy/1.1.0-dodzcv6
- source /mnt/local/ssd/vpic/spack/opt/spack/linux-centos7-x86_64/gcc-8.2.0/intel-19.0.1-p7galop7xyykgiz67bwmth44xwitbbfg/compilers_and_libraries_2019.1.144/linux/bin/compilervars.sh intel64
- module load intel/19.0.1.144/openmpi/3.1.3-dhknpg2
- j="$(grep -c processor /proc/cpuinfo 2>/dev/null)" || j=0; ((j++))
- build_dir=build-${CI_JOB_NAME}-${CI_JOB_ID}
- mkdir -p ${build_dir}
- pushd ${build_dir}
- CC=${_CC} CXX=${_CXX} cmake
-DENABLE_INTEGRATED_TESTS=ON
-DENABLE_UNIT_TESTS=ON
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DENABLE_LONG_TESTS=ON
..
- make -j ${j} -l ${l} VERBOSE=1
- make test CTEST_OUTPUT_ON_FAILURE=1
- make install DESTDIR=${PWD}/install
.gcc:
variables:
_CC: "gcc"
_CXX: "g++"
extends: .build_gcc
Release-GCC:
variables:
CMAKE_BUILD_TYPE: "Release"
extends: .gcc
Debug-GCC:
variables:
CMAKE_BUILD_TYPE: "Debug"
extends: .gcc
#.clang:
#variables:
#_CC: "clang"
#_CXX: "clang++"
#extends: .build
#Release-Clang:
#variables:
#CMAKE_BUILD_TYPE: "Release"
#extends: .clang
.intel:
variables:
#_CC: "icc"
#_CXX: "icpc"
_CC: "mpicc"
_CXX: "mpic++"
extends: .build_intel
Release-Intel:
variables:
CMAKE_BUILD_TYPE: "Release"
extends: .intel