-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci skip] Add nightly ci for spack (#6135)
* [ci skip] Add nightly ci for spack * [ci skip] Add nightly ci when using CUDA * Remove useless code * [ci skip] Remove duplicate spack load cmake
- Loading branch information
Showing
1 changed file
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |