From bc128a69427d1d4dc3e696ba2b4d87973c69116a Mon Sep 17 00:00:00 2001 From: Christian Trott Date: Tue, 1 Oct 2024 13:27:49 -0600 Subject: [PATCH] Add CUDA 12.2 C++20 SNL CI test --- .github/workflows/snl-ci.yml | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/snl-ci.yml diff --git a/.github/workflows/snl-ci.yml b/.github/workflows/snl-ci.yml new file mode 100644 index 00000000000..1e6fa51943c --- /dev/null +++ b/.github/workflows/snl-ci.yml @@ -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 +