forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jenkins_nightly
76 lines (72 loc) · 2.8 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
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
'''
}
}
}
}
}
}