Skip to content

Commit 3a8d3d3

Browse files
committed
Add build CI for openmp-target
1 parent 8813473 commit 3a8d3d3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ jobs:
494494
strategy:
495495
matrix:
496496
cxx: ['hipcc']
497+
backend: ['HIP', 'OPENMPTARGET']
497498
cmake_build_type: ['Debug']
498499
kokkos_ver: ['4.2.00']
499500
runs-on: ubuntu-latest
@@ -508,12 +509,14 @@ jobs:
508509
- name: Build kokkos
509510
working-directory: kokkos
510511
run: |
512+
[[ ${{ matrix.backend }} == "HIP" ]] && kokkos_cmake_opts+=( -DKokkos_ENABLE_HIP==ON )
513+
[[ ${{ matrix.backend }} == "OPENMPTARGET" ]] && kokkos_cmake_opts+=( -DKokkos_ENABLE_OPENMPTARGET==ON )
511514
cmake -B build \
512515
-DCMAKE_INSTALL_PREFIX=$HOME/kokkos \
513516
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }} \
514517
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
515-
-DKokkos_ENABLE_HIP=ON \
516-
-DKokkos_ARCH_VEGA908=ON
518+
-DKokkos_ARCH_VEGA908=ON \
519+
${kokkos_cmake_opts[@]}
517520
cmake --build build --parallel 2
518521
cmake --install build
519522
- name: Checkout arborx

0 commit comments

Comments
 (0)