forked from ECP-copa/Cabana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jenkins
73 lines (72 loc) · 3.24 KB
/
.jenkins
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
pipeline {
triggers {
issueCommentTrigger('.*test this please.*')
}
agent none
stages {
stage('Build') {
parallel {
stage('CUDA-10.2-NVCC-DEBUG') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'docker'
additionalBuildArgs '--pull --build-arg BASE=nvidia/cuda:10.2-devel'
label 'nvidia-docker && volta'
args '-v /tmp/ccache.kokkos:/tmp/ccache'
}
}
steps {
sh '''
rm -rf build && mkdir -p build && cd build && \
cmake \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_COMPILER=$KOKKOS_DIR/bin/nvcc_wrapper \
-D CMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic" \
-D CMAKE_PREFIX_PATH=$KOKKOS_DIR \
-D MPIEXEC_PREFLAGS="--allow-run-as-root;--mca;btl_smcuda_use_cuda_ipc;0" \
-D Cabana_REQUIRE_MPI=ON \
-D Cabana_REQUIRE_ARBORX=ON \
-D Cabana_REQUIRE_CUDA=ON \
-D Cabana_ENABLE_TESTING=ON \
-D Cabana_ENABLE_EXAMPLES=ON \
.. && \
make -j8 && \
ctest --output-on-failure
'''
}
}
stage('ROCM-3.5-HIPCC-DEBUG') {
agent {
dockerfile {
filename 'Dockerfile.hipcc'
dir 'docker'
additionalBuildArgs '--build-arg BASE=rocm/dev-ubuntu-18.04:3.5'
args '-v /tmp/ccache.kokkos:/tmp/ccache --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video'
label 'rocm-docker && vega'
}
}
steps {
sh '''
rm -rf build && mkdir -p build && cd build && \
cmake \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_COMPILER=hipcc \
-D CMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -DNDEBUG" \
-D MPIEXEC_PREFLAGS="--allow-run-as-root" \
-D CMAKE_PREFIX_PATH="$KOKKOS_DIR;$ARBORX_DIR" \
-D Cabana_REQUIRE_MPI=ON \
-D Cabana_REQUIRE_ARBORX=ON \
-D Cabana_REQUIRE_HIP=ON \
-D Cabana_ENABLE_TESTING=ON \
-D Cabana_ENABLE_EXAMPLES=ON \
.. && \
make -j8 && \
ctest --output-on-failure
'''
}
}
}
}
}
}