-
Notifications
You must be signed in to change notification settings - Fork 10
/
.jenkins
114 lines (109 loc) · 4.06 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
pipeline {
agent none
options {
disableConcurrentBuilds(abortPrevious: true)
timeout(time: 6, unit: 'HOURS')
}
triggers {
issueCommentTrigger('.*test this please.*')
}
stages {
stage('Build') {
parallel {
stage('CUDA-12.6-NVCC') {
agent {
dockerfile {
filename 'Dockerfile.nvcc'
dir 'scripts'
label 'nvidia-docker'
args '--env NVIDIA_VISIBLE_DEVICES=$NVIDIA_VISIBLE_DEVICES'
}
}
steps {
sh '''rm -rf kokkos &&
git clone --branch 4.4.01 --depth 1 https://github.com/kokkos/kokkos.git && \
cd kokkos && \
cmake -B build_kokkos \
-DCMAKE_CXX_COMPILER=$WORKSPACE/kokkos/bin/nvcc_wrapper \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DKokkos_ENABLE_CUDA=ON \
-DCMAKE_INSTALL_PREFIX=/opt/kokkos && \
cmake --build build_kokkos -j8 && \
cmake --install build_kokkos'''
sh '''rm -rf build && \
cmake -B build_interop \
-DCMAKE_CXX_COMPILER=/opt/kokkos/bin/nvcc_wrapper \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON && \
cmake --build build_interop -j8 && \
ctest --test-dir build_interop --verbose'''
}
}
stage('HIP-ROCm-6.2') {
agent {
dockerfile {
filename 'Dockerfile.hipcc'
dir 'scripts'
label 'rocm-docker'
args '--device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --env HIP_VISIBLE_DEVICES=$HIP_VISIBLE_DEVICES'
}
}
steps {
sh '''rm -rf kokkos &&
git clone --branch 4.4.01 --depth 1 https://github.com/kokkos/kokkos.git && \
cd kokkos && \
cmake -B build_kokkos \
-DCMAKE_CXX_COMPILER=hipcc \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DKokkos_ENABLE_HIP=ON \
-DCMAKE_INSTALL_PREFIX=/opt/kokkos && \
cmake --build build_kokkos -j8 && \
cmake --install build_kokkos'''
sh '''rm -rf build && \
cmake -B build_interop \
-DCMAKE_CXX_COMPILER=hipcc \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON && \
cmake --build build_interop -j8 && \
ctest --test-dir build_interop --verbose'''
}
}
stage('GCC-14.2') {
agent {
dockerfile {
filename 'Dockerfile.gcc'
dir 'scripts'
label 'docker'
}
}
environment {
OMP_NUM_THREADS = 8
OMP_NESTED = 'true'
OMP_MAX_ACTIVE_LEVELS = 3
OMP_PROC_BIND = 'true'
}
steps {
sh '''rm -rf kokkos &&
git clone --branch 4.4.01 --depth 1 https://github.com/kokkos/kokkos.git && \
cd kokkos && \
cmake -B build_kokkos \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DKokkos_ENABLE_OPENMP=ON \
-DCMAKE_INSTALL_PREFIX=/opt/kokkos && \
cmake --build build_kokkos -j8 && \
cmake --install build_kokkos'''
sh '''rm -rf build && \
cmake -B build_interop \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON && \
cmake --build build_interop -j8 && \
ctest --test-dir build_interop --verbose'''
}
}
}
}
}
}