-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitlab-ci.yml
166 lines (161 loc) · 5.47 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
###################
# Global Settings #
###################
stages:
- Env
- Build_n_Test
- Deploy
- Trigger
include:
- .gitlab-ci/index.yaml
######################
# Build_n_Test Stage #
######################
.build_n_test:
extends:
- .job
stage: Build_n_Test
script:
- module purge
- module use ${CI_PROJECT_DIR}/spack_env
- module load loads # module load compiler, deps, etc.
- module list
- echo $CC
- echo $CXX
- mpiexec --version
- nproc
- echo 'Start building'
#- ccache -z
- mkdir -p ${CI_PROJECT_DIR}/build
- mkdir -p ${CI_PROJECT_DIR}/build/install
- cd ${CI_PROJECT_DIR}
- echo "BUILDING WONTON"
- git clone ssh://[email protected]:7999/laristra/wonton.git
- cd wonton
- git checkout ${FLECSISP_WONTON_REF}
- git submodule update --init --recursive
- mkdir build
- cd build
- |
cmake \
-D CMAKE_BUILD_TYPE=Release \
-D ENABLE_UNIT_TESTS=True \
-D WONTON_ENABLE_MPI=True \
-D WONTON_ENABLE_THRUST=False \
-D WONTON_ENABLE_LAPACKE=False \
-D WONTON_ENABLE_TCMALLOC=False \
-D CMAKE_INSTALL_PREFIX=${FLECSISP_WONTON_INSTALL_PREFIX} \
..
- make -j2
- make install
- export CMAKE_PREFIX_PATH=${FLECSISP_WONTON_INSTALL_PREFIX}:${CMAKE_PREFIX_PATH}
- echo "DONE BUILDING WONTON"
- echo "BUILDING TANGRAM"
- git clone ssh://[email protected]:7999/laristra/tangram.git
- cd tangram
- git checkout ${FLECSISP_TANGRAM_REF}
- git submodule update --init --recursive
- mkdir build
- cd build
- |
cmake \
-D CMAKE_BUILD_TYPE=Release \
-D ENABLE_UNIT_TESTS=True \
-D TANGRAM_ENABLE_MPI=True \
-D TANGRAM_ENABLE_THRUST=False \
-D TANGRAM_ENABLE_XMOF2D=False \
-D XMOF2D_DIR:FILEPATH=${XMOF2D_INSTALL_PREFIX}/share/cmake \
-D WONTON_ROOT=${FLECSISP_WONTON_INSTALL_PREFIX} \
-D CMAKE_INSTALL_PREFIX=${FLECSISP_TANGRAM_INSTALL_PREFIX} \
..
- make -j2
- make install
- export CMAKE_PREFIX_PATH=${FLECSISP_TANGRAM_INSTALL_PREFIX}:${CMAKE_PREFIX_PATH}
- echo "DONE BUILDING TANGRAM"
- echo "BUILDING PORTAGE"
- cd ${CI_PROJECT_DIR}
- git clone ssh://[email protected]:7999/laristra/portage.git
- cd portage
- git checkout ${FLECSISP_PORTAGE_REF}
- git submodule update --init --recursive
- mkdir build
- cd build
- |
cmake \
-D CMAKE_BUILD_TYPE=Release \
-D ENABLE_UNIT_TESTS=True \
-D ENABLE_APP_TESTS=True \
-D PORTAGE_ENABLE_MPI=True \
-D PORTAGE_ENABLE_THRUST=False \
-D PORTAGE_ENABLE_TANGRAM=True \
-D TANGRAM_ROOT=${FLECSISP_TANGRAM_INSTALL_PREFIX} \
-D CMAKE_INSTALL_PREFIX=${FLECSISP_PORTAGE_INSTALL_PREFIX} \
..
- make -j4
- make install
- export CMAKE_PREFIX_PATH=${FLECSISP_PORTAGE_INSTALL_PREFIX}:${CMAKE_PREFIX_PATH}
- echo "DONE BUILDING PORTAGE"
- cd ${CI_PROJECT_DIR}
- git clone --recursive https://github.com/laristra/libristra.git
- mv libristra libristra-dev
- cd libristra-dev
- git submodule update --init --recursive
- mkdir -p build
- mkdir -p build/install
- cd build
- |
cmake -DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR}/libristra-dev/build/install \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LUA=ON \
-DENABLE_UNIT_TESTS=ON \
..
- make -k -j2 -l40 || make VERBOSE=1
- make install
- export CMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/libristra-dev/build/install:$CMAKE_PREFIX_PATH
- cd ${CI_PROJECT_DIR}
- git clone --recursive [email protected]:laristra/flecsi.git
- mv flecsi flecsi-dev
- cd flecsi-dev
- git checkout ${FLECSISP_FLECSI_REF}
- git submodule update --init --recursive
- mkdir -p build
- mkdir -p build/install
- cd build
- |
cmake -DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR}/flecsi-dev/build/install \
-DCMAKE_BUILD_TYPE=Release \
-DFLECSI_RUNTIME_MODEL=$FLECSISP_RUNTIME \
-DENABLE_FLECSIT=OFF \
-DENABLE_FLECSI_TUTORIAL=OFF \
-DENABLE_UNIT_TESTS=ON \
-DENABLE_DOXYGEN=OFF \
-DENABLE_DOCUMENTATION=OFF \
-DENABLE_COVERAGE_BUILD=OFF \
..
- make -k VERBOSE=1 -j2 -l40
- make install
- export CMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/flecsi-dev/build/install:$CMAKE_PREFIX_PATH
- echo ${CMAKE_PREFIX_PATH}
- cd ${CI_PROJECT_DIR}/build/
- |
cmake -DMPIEXEC_PREFLAGS=$([ "$FLECSISP_MPI_PROVIDER" = "openmpi" ] && echo '--oversubscribe' ) \
-DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR}/build/install \
-DCMAKE_BUILD_TYPE=$FLECSISP_BUILD_TYPE \
-DFLECSI_RUNTIME_MODEL=$FLECSISP_RUNTIME \
-DFLECSI_SP_ENABLE_EXODUS=ON \
-DENABLE_UNIT_TESTS=ON \
..
- make -k -j2 -l40 VERBOSE=1 FleCSI-SP
- ldd ./libFleCSI-SP.so
- printenv | grep LD_LIBRARY_PATH
- make -k -j2 -l40 || make VERBOSE=1
- make install DESTDIR=${CI_PROJECT_DIR}/build/install
#- make install
#- ccache -s
- echo 'Start testing'
- cd ${CI_PROJECT_DIR}/build/
- make CTEST_OUTPUT_ON_FAILURE=1 test
#- gcovr .
#######################################################################################
#######################################################################################
#######################################################################################