-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
83 lines (75 loc) · 2.5 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
image: cuda10.0-mpi-hdf5
# Is performed before the scripts in the stages step
before_script:
- export OMP_PROC_BIND=close
- export OMP_PLACES=cores
- export OMP_NUM_THREADS=1
- export CMAKE_VERSION=3.10.3
- export CTEST_OUTPUT_ON_FAILURE=1
- export J=$(( $(nproc --all) / 4 + 1 )) && echo Using ${J} cores during build
- wget -qO- http://www.cmake.org/files/v${CMAKE_VERSION:0:4}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz | tar -xz
- export PATH=${PWD}/cmake-${CMAKE_VERSION}-Linux-x86_64/bin:$PATH
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- style
- short
style-check:
tags:
- cpu
stage: style
script:
- python ./tst/style/cpplint.py --counting=detailed --recursive src example tst
allow_failure: true
parthenon-cuda-short:
tags:
- cuda
stage: short
script:
# mitigate UVM allocations on older multi-GPU systems
# - export CUDA_LAUNCH_BLOCKING=1
# - export CUDA_VISIBLE_DEVICES=0
- mkdir build-cuda-debug
- cd build-cuda-debug
- cmake -DCMAKE_BUILD_TYPE=Debug -DHDF5_ROOT=/usr/local/hdf5/parallel
-DKokkos_ENABLE_OPENMP=True -DKokkos_ARCH_WSM=True
-DKokkos_ENABLE_CUDA=True -DKokkos_ARCH_PASCAL61=True
-DCMAKE_CXX_COMPILER=${PWD}/../external/Kokkos/bin/nvcc_wrapper
../ && make -j${J} && ctest -j${J} -LE performance
# run short suite on CPUs
parthenon-cpu-short:
tags:
- cpu
stage: short
script:
- mkdir build-debug
- cd build-debug
- cmake -DCMAKE_BUILD_TYPE=Debug -DHDF5_ROOT=/usr/local/hdf5/parallel
-DKokkos_ENABLE_OPENMP=True -DKokkos_ARCH_WSM=True
../ && make -j${J} && ctest -j${J} -LE performance
parthenon-cuda-peformance:
tags:
- cuda
stage: short
script:
# mitigate UVM allocations on older multi-GPU systems
# - export CUDA_LAUNCH_BLOCKING=1
# - export CUDA_VISIBLE_DEVICES=0
- mkdir build-cuda-perf
- cd build-cuda-perf
- cmake -DCMAKE_BUILD_TYPE=Release -DHDF5_ROOT=/usr/local/hdf5/parallel
-DKokkos_ENABLE_OPENMP=True -DKokkos_ARCH_WSM=True
-DKokkos_ENABLE_CUDA=True -DKokkos_ARCH_PASCAL61=True
-DCMAKE_CXX_COMPILER=${PWD}/../external/Kokkos/bin/nvcc_wrapper
../ && make -j${J} && ctest -L performance
# run short suite on CPUs
parthenon-cpu-performance:
tags:
- cpu
stage: short
script:
- mkdir build-perf
- cd build-perf
- cmake -DCMAKE_BUILD_TYPE=Release -DHDF5_ROOT=/usr/local/hdf5/parallel
-DKokkos_ENABLE_OPENMP=True -DKokkos_ARCH_WSM=True
../ && make -j${J} && ctest -L performance