Skip to content

Commit 7e11444

Browse files
committed
Add Jenkins workflow
1 parent 1b44845 commit 7e11444

2 files changed

Lines changed: 81 additions & 0 deletions

File tree

jenkins/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM nvidia/cuda:12.0.0-devel-ubuntu20.04
2+
3+
# julia
4+
RUN apt-get update && \
5+
DEBIAN_FRONTEND=noninteractive \
6+
apt-get install --yes --no-install-recommends \
7+
# basic stuff
8+
curl ca-certificates \
9+
libcutensor-dev \
10+
&& \
11+
apt-get clean && \
12+
rm -rf /var/lib/apt/lists/*
13+
14+
ARG JULIA=1.6
15+
RUN curl -s -L https://julialang-s3.julialang.org/bin/linux/x64/${JULIA}/julia-${JULIA}-latest-linux-x86_64.tar.gz | \
16+
tar -C /usr/local -x -z --strip-components=1 -f -

jenkins/Jenkinsfile

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
pipeline {
2+
agent none
3+
options {
4+
disableConcurrentBuilds()
5+
buildDiscarder(logRotator(numToKeepStr: '8', daysToKeepStr: '20'))
6+
}
7+
stages {
8+
stage('GPU Testing') {
9+
parallel {
10+
stage('MatrixAlgebraKitCUDAExt julia-lts') {
11+
options {
12+
timeout(time: 45, unit: 'MINUTES')
13+
}
14+
agent {
15+
dockerfile {
16+
label 'gpu&&v100'
17+
filename 'Dockerfile'
18+
dir 'jenkins'
19+
additionalBuildArgs '--build-arg JULIA=1.10'
20+
args '--gpus "device=1"'
21+
}
22+
}
23+
environment {
24+
HOME = pwd(tmp:true)
25+
OMP_NUM_THREADS = 4
26+
JULIA_NUM_THREADS = 4
27+
}
28+
steps {
29+
sh '''
30+
julia --project=. -e 'using Pkg: Pkg
31+
Pkg.instantiate();
32+
Pkg.test("MatrixAlgebraKit"; test_args=["cuda"])'
33+
'''
34+
}
35+
}
36+
stage('MatrixAlgebraKitCUDAExt julia-1') {
37+
options {
38+
timeout(time: 45, unit: 'MINUTES')
39+
}
40+
agent {
41+
dockerfile {
42+
label 'gpu&&v100'
43+
filename 'Dockerfile'
44+
dir 'jenkins'
45+
additionalBuildArgs '--build-arg JULIA=1.11'
46+
args '--gpus "device=1"'
47+
}
48+
}
49+
environment {
50+
HOME = pwd(tmp:true)
51+
OMP_NUM_THREADS = 4
52+
JULIA_NUM_THREADS = 4
53+
}
54+
steps {
55+
sh '''
56+
julia --project=. -e 'using Pkg: Pkg
57+
Pkg.instantiate();
58+
Pkg.test("MatrixAlgebraKit"; test_args=["cuda"])'
59+
'''
60+
}
61+
}
62+
}
63+
}
64+
}
65+
}

0 commit comments

Comments
 (0)