-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
294 lines (265 loc) · 8.19 KB
/
.travis.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
language: cpp
os: linux
dist: bionic
env:
global:
- CMAKE_BUILD_TYPE=RELEASE
- SPACK_ROOT: $HOME/spack
- PATH: $PATH:$SPACK_ROOT/bin
- OMPI_MCA_orte_base_help_aggregate: 0
jobs:
include:
- name: build without external dependencies (linux)
os: linux
dist: bionic
- name: build without external dependencies (osx)
os: osx
osx_image: xcode11
- name: build with python3 (linux)
os: linux
dist: bionic
python: "3.8"
before_install:
- pyenv local 3.8.1
- pip3 install numpy
addons:
apt:
packages:
- python-dev
env:
- CMAKE_ARG="-DFTK_BUILD_PYFTK=ON -DFTK_BUILD_EXECUTABLES=OFF"
- name: build with mpsolve (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libgmp-dev
before_install:
- sh tests/travis/install-mpsolve.sh
env:
- CMAKE_ARG="-DFTK_USE_MPSolve=ON -DMPSolve_INCLUDE_DIR=/tmp/MPSolve-3.2.1/include -DMPSolve_LIBRARY=/tmp/MPSolve-3.2.1/lib/libmps.so"
- name: build with tbb (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libtbb-dev
env:
- CMAKE_ARG="-DFTK_USE_TBB=ON"
- name: build with vtk (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libvtk7-dev
env:
- CMAKE_ARG="-DFTK_USE_VTK=ON -DFTK_USE_MPI=OFF -DFTK_USE_HDF5=OFF -DFTK_USE_NETCDF=OFF"
- name: build with mpich (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libmpich-dev
- mpich
env:
- CMAKE_ARG="-DFTK_USE_MPI=ON"
- name: build with cuda10 (linux)
os: linux
dist: bionic
before_install:
- sh tests/travis/install-cuda.sh
env:
- CUDA=10.1.105-1
- CUDA_SHORT_VER=10-1
- CUDA_SHORT=10.1
- UBUNTU_VERSION=ubuntu1804
- CMAKE_ARG="-DFTK_USE_CUDA=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda-10.1/bin/nvcc"
- name: build with dpcpp (linux)
os: linux
dist: bionic
addons:
apt:
sources:
- sourceline: 'deb https://apt.repos.intel.com/oneapi all main'
key_url: 'https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB'
packages:
- intel-oneapi-dpcpp-compiler
before_install:
- source /opt/intel/inteloneapi/compiler/latest/env/vars.sh
env:
- CMAKE_ARG="-DFTK_USE_SYCL=ON -DCMAKE_CXX_COMPILER=dpcpp"
- name: build with paraview (linux)
os: linux
dist: bionic
before_install:
- sh tests/travis/install-paraview.sh
env:
- CMAKE_ARG="-DFTK_BUILD_PARAVIEW=ON -DParaView_DIR=$HOME/paraview-5.8.1/lib/cmake/paraview-5.8"
allow_failures:
- name: build with mpich (osx)
os: osx
before_install:
- brew install mpich
#- sh tests/travis/install-mpich.sh
osx_image: xcode11
env:
- CMAKE_ARG="-DFTK_USE_MPI=ON"
- name: build with openmpi (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libopenmpi-dev
- openmpi-bin
env:
- CMAKE_ARG="-DFTK_USE_MPI=ON"
- name: build with mpsolve, netcdf, hdf5, vtk, and openmpi (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libnetcdf-dev
- libhdf5-dev
- libvtk7-dev
- libopenmpi-dev
- openmpi-bin
before_install:
- sh tests/travis/install-mpsolve.sh
env:
- CMAKE_ARG="-DFTK_USE_MPI=ON -DFTK_USE_HDF5=ON -DFTK_USE_VTK=ON -DFTK_USE_MPSolve=ON -DMPSolve_INCLUDE_DIR=/tmp/MPSolve-3.2.1/include -DMPSolve_LIBRARY=/tmp/MPSolve-3.2.1/lib/libmps.so"
- name: build with mpich from spack
os: linux
dist: bionic
before_install:
- sh tests/travis/install-spack.sh
- source $SPACK_ROOT/share/spack/setup-env.sh
- spack install mpich
- spack load mpich
addons:
apt:
packages:
- gfortran
env:
- CMAKE_ARG="-DFTK_USE_MPI=ON"
- name: build with vtk (osx)
env:
- CMAKE_ARG="-DFTK_USE_VTK=ON"
os: osx
before_install:
- sh tests/travis/install-vtk.sh
osx_image: xcode11
- name: build with hdf5 (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libhdf5-dev
env:
- CMAKE_ARG="-DFTK_USE_HDF5=ON"
- name: build with netcdf (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libnetcdf-dev
env:
- CMAKE_ARG="-DFTK_USE_NETCDF=ON"
- name: build with netcdf, hdf5, and vtk (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libnetcdf-dev
- libhdf5-dev
- libvtk7-dev
env:
- CMAKE_ARG="-DFTK_USE_NETCDF=ON -DFTK_USE_HDF5=ON -DFTK_USE_VTK=ON"
- name: build with mpsolve, netcdf, hdf5, and vtk (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libnetcdf-dev
- libhdf5-dev
- libvtk7-dev
before_install:
- sh tests/travis/install-mpsolve.sh
env:
- CMAKE_ARG="-DFTK_USE_HDF5=ON -DFTK_USE_VTK=ON -DFTK_USE_MPSolve=ON -DMPSolve_INCLUDE_DIR=/tmp/MPSolve-3.2.1/include -DMPSolve_LIBRARY=/tmp/MPSolve-3.2.1/lib/libmps.so"
- name: build with mpsolve, netcdf, hdf5, vtk, and mpich (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libvtk7-dev
- libhdf5-dev
- libnetcdf-dev
- libmpich-dev
- mpich
before_install:
- sh tests/travis/install-mpsolve.sh
env:
- CMAKE_ARG="-DCMAKE_C_COMPILER=/usr/bin/mpicc.mpich -DCMAKE_CXX_COMPILER=/usr/bin/mpicxx.mpich -DMPIEXEC_EXECUTABLE=/usr/bin/mpiexec.mpich -DFTK_USE_MPI=ON -DFTK_USE_HDF5=ON -DFTK_USE_VTK=ON -DFTK_USE_MPSolve=ON -DMPSolve_INCLUDE_DIR=/tmp/MPSolve-3.2.1/include -DMPSolve_LIBRARY=/tmp/MPSolve-3.2.1/lib/libmps.so"
- name: build with mpsolve, netcdf, hdf5, vtk, cuda10, and mpich (linux)
os: linux
dist: bionic
addons:
apt:
packages:
- libvtk7-dev
- libhdf5-dev
- libnetcdf-dev
- libmpich-dev
- mpich
before_install:
- sh tests/travis/install-mpsolve.sh
- sh tests/travis/install-cuda.sh
env:
- CUDA=10.1.105-1
- CUDA_SHORT_VER=10-1
- CUDA_SHORT=10.1
- UBUNTU_VERSION=ubuntu1804
- CPATH=/usr/local/cuda-10.1/include
- CMAKE_ARG="-DCMAKE_C_COMPILER=/usr/bin/mpicc.mpich -DCMAKE_CXX_COMPILER=/usr/bin/mpicxx.mpich -DMPIEXEC_EXECUTABLE=/usr/bin/mpiexec.mpich -DFTK_USE_MPI=ON -DFTK_USE_HDF5=ON -DFTK_USE_VTK=ON -DFTK_USE_MPSolve=ON -DFTK_USE_CUDA=ON -DMPSolve_INCLUDE_DIR=/tmp/MPSolve-3.2.1/include -DMPSolve_LIBRARY=/tmp/MPSolve-3.2.1/lib/libmps.so -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.1"
- name: build with mpsolve, netcdf, hdf5, vtk, cuda10, and openmpi (linux) # FIXME cmake has problem with this build
os: linux
dist: bionic
addons:
apt:
packages:
- libvtk7-dev
- libhdf5-dev
- libnetcdf-dev
- libopenmpi-dev
- openmpi-bin
before_install:
- sh tests/travis/install-mpsolve.sh
- sh tests/travis/install-cuda.sh
env:
- CUDA=10.1.105-1
- CUDA_SHORT_VER=10-1
- CUDA_SHORT=10.1
- UBUNTU_VERSION=ubuntu1804
- CMAKE_ARG="-DFTK_USE_MPI=ON -DFTK_USE_HDF5=ON -DFTK_USE_VTK=ON -DFTK_USE_MPSolve=ON -DFTK_USE_CUDA=ON -DMPSolve_INCLUDE_DIR=/tmp/MPSolve-3.2.1/include -DMPSolve_LIBRARY=/tmp/MPSolve-3.2.1/lib/libmps.so -DCMAKE_CUDA_COMPILER=/usr/local/cuda-10.1/bin/nvcc"
before_script:
- mkdir build
- cd build
- cmake .. -DFTK_BUILD_TESTS=ON ${CMAKE_ARG}
- make VERBOSE=1
#- cmake --build .
script:
- ctest -VV
notifications:
email: