-
Notifications
You must be signed in to change notification settings - Fork 24
/
.jenkins
150 lines (150 loc) · 5.81 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
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
pipeline {
agent none
stages {
stage('Automated testing') {
when {
not {
branch 'master'
}
}
parallel {
stage('Clang14-Python3.10') {
agent {
dockerfile {
filename 'Dockerfile_stack'
dir 'docker'
label 'docker'
}
}
steps {
sh '''rm -rf build && mkdir -p build && cd build &&
cmake \
-D CMAKE_INSTALL_PREFIX=./TasmanianInstall \
-D CMAKE_CXX_FLAGS="-O3 -Wall -Wextra -Wshadow -pedantic" \
-D CMAKE_CXX_COMPILER=clang++ \
-D Tasmanian_ENABLE_PYTHON=ON \
-D Tasmanian_TESTS_OMP_NUM_THREADS=4 \
.. &&
make -j4 &&
ctest -j4 -V --no-compress-output -T Test &&
make install &&
make test_install
'''
}
post {
always {
xunit([CTest(deleteOutputFiles: true, failIfNotNew: true, pattern: 'build/Testing/**/Test.xml', skipNoTestFiles: false, stopProcessingIfError: true)])
}
}
}
stage('GCC11.2-Python3.10-OpenMPI') {
agent {
dockerfile {
filename 'Dockerfile_stack'
dir 'docker'
label 'docker'
}
}
steps {
sh '''rm -rf build && mkdir -p build && cd build &&
cmake \
-D CMAKE_INSTALL_PREFIX=./TasmanianInstall \
-D CMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow -pedantic" \
-D CMAKE_CXX_COMPILER=g++ \
-D Tasmanian_ENABLE_RECOMMENDED=ON \
-D Tasmanian_ENABLE_MPI=ON \
-D MPIEXEC_PREFLAGS="--allow-run-as-root" \
-D Tasmanian_ENABLE_FORTRAN=ON \
-D Tasmanian_TESTS_OMP_NUM_THREADS=2 \
.. &&
make -j4 &&
ctest -j2 -V --no-compress-output -T Test &&
make install &&
make test_install
'''
}
post {
always {
xunit([CTest(deleteOutputFiles: true, failIfNotNew: true, pattern: 'build/Testing/**/Test.xml', skipNoTestFiles: false, stopProcessingIfError: true)])
}
}
}
stage('CUDA11.3') {
agent {
dockerfile {
filename 'Dockerfile.cuda'
dir 'docker'
label 'nvidia-docker'
}
}
steps {
sh '''rm -rf build && mkdir -p build && cd build &&
cmake \
-D CMAKE_INSTALL_PREFIX=./TasmanianInstall \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow" \
-D Tasmanian_ENABLE_OPENMP=ON \
-D Tasmanian_ENABLE_BLAS=ON \
-D Tasmanian_ENABLE_CUDA=ON \
-D Tasmanian_ENABLE_MAGMA=OFF \
-D Tasmanian_ENABLE_PYTHON=ON \
-D Tasmanian_ENABLE_MPI=OFF \
-D Tasmanian_ENABLE_FORTRAN=ON \
-D Tasmanian_TESTS_OMP_NUM_THREADS=4 \
.. &&
make -j4 &&
ctest -j4 -V --no-compress-output -T Test &&
make install &&
make test_install
'''
}
post {
always {
xunit([CTest(deleteOutputFiles: true, failIfNotNew: true, pattern: 'build/Testing/**/Test.xml', skipNoTestFiles: false, stopProcessingIfError: true)])
}
}
}
stage('ROCm HIPCC') {
agent {
dockerfile {
filename 'Dockerfile.rocm'
dir 'docker'
additionalBuildArgs '--build-arg BASE=rocm/dev-ubuntu-20.04:4.3'
args '--device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --env HIP_VISIBLE_DEVICES=${HIP_VISIBLE_DEVICES}'
label 'rocm-docker && AMD_Radeon_Instinct_MI210'
}
}
steps {
sh '''rm -rf build && mkdir -p build && cd build &&
cmake \
-D CMAKE_INSTALL_PREFIX=./TasmanianInstall \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow" \
-D CMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
-D Tasmanian_ENABLE_OPENMP=ON \
-D Tasmanian_ENABLE_BLAS=ON \
-D Tasmanian_ENABLE_CUDA=OFF \
-D Tasmanian_ENABLE_HIP=ON \
-D Tasmanian_ENABLE_MAGMA=OFF \
-D Tasmanian_ENABLE_PYTHON=ON \
-D Tasmanian_ENABLE_MPI=OFF \
-D Tasmanian_ENABLE_FORTRAN=OFF \
-D Tasmanian_TESTS_OMP_NUM_THREADS=4 \
.. &&
make -j4 &&
./Tasgrid/tasgrid -v &&
ctest -j4 -V --no-compress-output -T Test &&
make install &&
make test_install
'''
}
post {
always {
xunit([CTest(deleteOutputFiles: true, failIfNotNew: true, pattern: 'build/Testing/**/Test.xml', skipNoTestFiles: false, stopProcessingIfError: true)])
}
}
}
}
}
}
}