1 Star 0 Fork 0

胡鑫/kokkos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.jenkins_nightly 6.08 KB
一键复制 编辑 原始数据 按行查看 历史
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 ^cuda@12.1.0 && \
spack load cmake && \
spack load kokkos-nvcc-wrapper && \
spack load cuda && \
spack load kokkos && \
spack test run kokkos && \
spack test results -l
'''
}
}
stage('GCC-13') {
agent {
docker {
image 'gcc:13.1'
label 'docker'
}
}
steps {
sh '''
DEBIAN_FRONTEND=noninteractive && \
apt-get update && apt-get upgrade -y && apt-get install -y \
cmake \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*
mkdir -p build && cd build && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=23 \
-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.0') {
agent {
dockerfile {
filename 'Dockerfile.hipcc'
dir 'scripts/docker'
additionalBuildArgs '--build-arg BASE=rocm/dev-ubuntu-20.04:6.0.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'
}
}
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'
}
}
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/laohuxin/kokkos.git
git@gitee.com:laohuxin/kokkos.git
laohuxin
kokkos
kokkos
develop

搜索帮助