File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments