forked from icl-utk-edu/heffte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jenkins
111 lines (111 loc) · 3.9 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
pipeline {
agent none
stages {
stage('Automated testing') {
when {
not {
branch 'master'
}
}
parallel {
stage('GCC-CPU') {
agent {
dockerfile {
filename 'Dockerfile_fftw'
dir 'docker'
label 'docker'
}
}
steps {
sh '''rm -rf build && mkdir -p build && cd build &&
cmake \
-DCMAKE_INSTALL_PREFIX=./HeffteInstall \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS="-O3 -Wall -Wextra -Wshadow" \
-DBUILD_SHARED_LIBS=ON \
-DHeffte_ENABLE_FFTW=ON \
-DHeffte_ENABLE_CUDA=OFF \
-DHeffte_ENABLE_FORTRAN=ON \
-DHeffte_ENABLE_PYTHON=ON \
-DMPIEXEC_PREFLAGS="--allow-run-as-root" \
.. &&
make -j4 &&
ctest -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('GCC-CUDA') {
agent {
dockerfile {
filename 'Dockerfile_cuda'
dir 'docker'
label 'nvidia-docker'
}
}
steps {
sh '''rm -rf build && mkdir -p build && cd build &&
cmake \
-DCMAKE_INSTALL_PREFIX=./HeffteInstall \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow" \
-DHeffte_ENABLE_FFTW=OFF \
-DHeffte_ENABLE_CUDA=ON \
-DMPIEXEC_PREFLAGS="--allow-run-as-root;--host;localhost:12" \
.. &&
make -j4 &&
ctest -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 && vega'
}
}
steps {
sh '''rm -rf build && mkdir -p build && cd build &&
cmake \
-DCMAKE_INSTALL_PREFIX=./HeffteInstall \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow" \
-DHeffte_ENABLE_FFTW=ON \
-DHeffte_ENABLE_ROCM=ON \
-DHeffte_DISABLE_GPU_AWARE_MPI=ON \
-DMPIEXEC_PREFLAGS="--allow-run-as-root" \
.. &&
make -j4 &&
ctest -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)])
}
}
}
}
}
}
}