forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kokkos#7395 from crtrott/add-snl-ci-test
Add CUDA 12.2 C++20 SNL CI test
- Loading branch information
Showing
1 changed file
with
56 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,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 | ||
|