Skip to content

Commit

Permalink
Merge pull request kokkos#7395 from crtrott/add-snl-ci-test
Browse files Browse the repository at this point in the history
Add CUDA 12.2 C++20 SNL CI test
  • Loading branch information
crtrott authored Oct 2, 2024
2 parents 4aae49f + bc128a6 commit 853d1c2
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/snl-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: SNL-CI

on:
pull_request:
paths-ignore:
- '**/*.md'
types: [ opened, reopened, synchronize ]

permissions:
contents: none

# Cancels any in progress 'workflow' associated with this PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
CUDA_12_2_CPP20:
name: SNL_CUDA_NVCC_12_2_CPP20
runs-on: [snl-kk-env-cuda-12.2.0-gcc-11.3.0-latest]

steps:
- name: checkout_kokkos
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: kokkos/kokkos
ref: ${{ github.base_ref }}
path: kokkos

- name: configure_kokkos
run: |
nvidia-smi
cd kokkos
cmake -B build \
-DCMAKE_CXX_STANDARD=20 \
-DKokkos_ENABLE_CUDA=ON \
-DKokkos_ARCH_HOPPER90=ON \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DKokkos_ENABLE_DEPRECATED_CODE_4=OFF \
-DKokkos_ENABLE_DEPRECATION_WARNINGS=OFF \
-DKokkos_ENABLE_TESTS=ON \
-DKokkos_ENABLE_EXAMPLES=ON \
-DKokkos_ENABLE_BENCHMARKS=ON \
./
- name: build_and_install_kokkos
working-directory: kokkos
run: |
cmake --build build -j36
cmake --install build --prefix install
- name: test_kokkos
working-directory: kokkos/build
run: ctest --output-on-failure --timeout 3600

0 comments on commit 853d1c2

Please sign in to comment.