forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jenkins
112 lines (112 loc) · 4.75 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
pipeline {
agent {
label 'docker'
}
environment {
CCACHE_DIR = '/tmp/ccache'
CCACHE_MAXSIZE = '10G'
CCACHE_CPP2 = 'true'
}
stages {
stage('Build') {
parallel {
stage('CUDA-9.2-Clang') {
agent {
dockerfile {
filename 'Dockerfile.clang'
dir 'scripts/docker'
additionalBuildArgs '--pull'
label 'nvidia-docker && volta'
args '-v /tmp/ccache.kokkos:/tmp/ccache'
}
}
environment {
OPTIONS = '--with-options=compiler_warnings --arch=Volta70 --compiler=/usr/local/bin/clang++ --with-cuda --with-cuda-options=enable_lambda'
}
steps {
sh 'ln -s /usr/bin/ccache /usr/local/bin/clang++'
sh 'ccache --zero-stats'
sh 'rm -rf build && mkdir -p build && cd build && ../generate_makefile.bash $OPTIONS && make test -j8'
}
post {
always {
sh 'ccache --show-stats'
}
}
}
stage("CUDA-9.2-NVCC") {
agent {
dockerfile {
filename 'Dockerfile.nvcc'
dir 'scripts/docker'
additionalBuildArgs '--pull --build-arg BASE=nvidia/cuda:9.2-devel'
label 'nvidia-docker && volta'
args '-v /tmp/ccache.kokkos:/tmp/ccache'
}
}
environment {
OPTIONS = '--with-options=compiler_warnings --arch=Volta70 --with-cuda --with-cuda-options=enable_lambda'
}
steps {
sh 'ln -s /usr/bin/ccache /usr/local/bin/g++'
sh 'ccache --zero-stats'
sh 'rm -rf build && mkdir -p build && cd build && ../generate_makefile.bash $OPTIONS && make test -j8'
}
post {
always {
sh 'ccache --show-stats'
}
}
}
stage("CUDA-10.1-NVCC") {
agent {
dockerfile {
filename 'Dockerfile.nvcc'
dir 'scripts/docker'
additionalBuildArgs '--pull --build-arg BASE=nvidia/cuda:10.1-devel'
label 'nvidia-docker && volta'
args '-v /tmp/ccache.kokkos:/tmp/ccache'
}
}
environment {
OPTIONS = '--with-options=compiler_warnings --arch=Volta70 --with-cuda --with-cuda-options=enable_lambda,rdc,force_uvm'
}
steps {
sh 'ln -s /usr/bin/ccache /usr/local/bin/g++'
sh 'ccache --zero-stats'
sh 'rm -rf build && mkdir -p build && cd build && ../generate_makefile.bash $OPTIONS && make test -j8'
}
post {
always {
sh 'ccache --show-stats'
}
}
}
stage("CUDA-10.1-NVCC-DEBUG") {
agent {
dockerfile {
filename 'Dockerfile.nvcc'
dir 'scripts/docker'
additionalBuildArgs '--pull --build-arg BASE=nvidia/cuda:10.1-devel'
label 'nvidia-docker && volta'
args '-v /tmp/ccache.kokkos:/tmp/ccache'
}
}
environment {
OPTIONS = '--with-options=compiler_warnings --arch=Volta70--with-cuda --with-cuda-options=enable_lambda --debug'
}
steps {
sh 'ln -s /usr/bin/ccache /usr/local/bin/g++'
sh 'ccache --zero-stats'
sh 'rm -rf build && mkdir -p build && cd build && ../generate_makefile.bash $OPTIONS && make test -j8'
}
post {
always {
sh 'ccache --show-stats'
}
}
}
}
}
}
}