forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.jenkins_nightly
144 lines (139 loc) · 6.24 KB
/
.jenkins_nightly
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
pipeline {
agent none
options {
timeout(time: 6, unit: 'HOURS')
}
stages {
stage('Build') {
parallel {
stage('spack-serial') {
agent {
docker {
image 'ubuntu:22.04'
label 'docker'
}
}
steps {
sh '''
DEBIAN_FRONTEND=noninteractive && \
apt-get update && apt-get upgrade -y && apt-get install -y \
build-essential \
wget \
git \
bc \
python3-dev \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -rf spack && \
git clone https://github.com/spack/spack.git && \
. ./spack/share/spack/setup-env.sh && \
spack install kokkos@develop+tests && \
spack load cmake && \
spack test run kokkos && \
spack test results -l
'''
}
}
stage('spack-cuda') {
agent {
docker {
image 'nvidia/cuda:12.1.0-devel-ubuntu22.04'
label 'nvidia-docker && ampere'
}
}
steps {
sh '''
DEBIAN_FRONTEND=noninteractive && \
apt-get update && apt-get upgrade -y && apt-get install -y \
build-essential \
wget \
git \
bc \
python3-dev \
gfortran \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -rf spack && \
git clone https://github.com/spack/spack.git && \
. ./spack/share/spack/setup-env.sh && \
spack install kokkos@develop+cuda+wrapper+tests cuda_arch=80 ^[email protected] && \
spack load cmake && \
spack load kokkos-nvcc-wrapper && \
spack load cuda && \
spack load kokkos && \
spack test run kokkos && \
spack test results -l
'''
}
}
stage('GCC-14') {
agent {
docker {
image 'gcc:14.1'
label 'docker'
}
}
steps {
sh '''
wget https://github.com/Kitware/CMake/releases/download/v3.30.0/cmake-3.30.0-linux-x86_64.sh && \
chmod +x cmake-3.30.0-linux-x86_64.sh && ./cmake-3.30.0-linux-x86_64.sh --skip-license --prefix=/usr
mkdir -p build && cd build && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=26 \
-DCMAKE_CXX_FLAGS=-Werror \
-DKokkos_ARCH_NATIVE=ON \
-DKokkos_ENABLE_COMPILER_WARNINGS=ON \
-DKokkos_ENABLE_BENCHMARKS=ON \
-DKokkos_ENABLE_EXAMPLES=ON \
-DKokkos_ENABLE_TESTS=ON \
-DKokkos_ENABLE_DEPRECATED_CODE_4=ON \
-DKokkos_ENABLE_DEPRECATION_WARNINGS=ON \
-DKokkos_ENABLE_SERIAL=ON \
.. && \
make -j8 && ctest --verbose
'''
}
}
stage('HIP-ROCM-6.2') {
agent {
dockerfile {
filename 'Dockerfile.hipcc'
dir 'scripts/docker'
additionalBuildArgs '--build-arg BASE=rocm/dev-ubuntu-22.04:6.2-complete'
label 'rocm-docker && AMD_Radeon_Instinct_MI210'
args '-v /tmp/ccache.kokkos:/tmp/ccache --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --env HIP_VISIBLE_DEVICES=$HIP_VISIBLE_DEVICES'
}
}
environment {
// FIXME Test returns a wrong value
GTEST_FILTER = '-hip_hostpinned.view_allocation_large_rank'
}
steps {
sh 'ccache --zero-stats'
sh '''rm -rf build && mkdir -p build && cd build && \
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CXX_COMPILER=hipcc \
-DCMAKE_CXX_FLAGS="-Werror -Wno-unused-command-line-argument" \
-DCMAKE_CXX_STANDARD=20 \
-DKokkos_ARCH_NATIVE=ON \
-DKokkos_ENABLE_COMPILER_WARNINGS=ON \
-DKokkos_ENABLE_DEPRECATED_CODE_4=ON \
-DKokkos_ENABLE_DEPRECATION_WARNINGS=ON \
-DKokkos_ENABLE_TESTS=ON \
-DKokkos_ENABLE_BENCHMARKS=ON \
-DKokkos_ENABLE_HIP=ON \
.. && \
make -j8 && ctest --verbose'''
}
post {
always {
sh 'ccache --show-stats'
}
}
}
}
}
}
}