diff --git a/.github/workflows/pr_comment_trigger_self_hosted.yml b/.github/workflows/pr_comment_trigger_self_hosted.yml index fb0a5c12..c3febc23 100644 --- a/.github/workflows/pr_comment_trigger_self_hosted.yml +++ b/.github/workflows/pr_comment_trigger_self_hosted.yml @@ -101,7 +101,6 @@ jobs: -DKokkos_ENABLE_SERIAL=ON \ -DKokkos_ENABLE_OPENMP=off \ -DKokkos_ENABLE_CUDA=on \ - -DKokkos_ENABLE_CUDA_LAMBDA=on \ -DKokkos_ENABLE_DEBUG=off \ -DCMAKE_INSTALL_PREFIX=$kkbdir/install cmake --build $kkbdir --target install -j 4 diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f0dc29e..a4602bd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,9 +98,11 @@ if(Omega_h_USE_Kokkos) if ("SYCL" IN_LIST Kokkos_DEVICES) bob_option(Omega_h_USE_SYCL "Whether to use SYCL" "ON") endif() - if (Kokkos_ENABLE_CUDA AND (NOT "CUDA_LAMBDA" IN_LIST Kokkos_OPTIONS)) - message(FATAL_ERROR - "Please reconfigure Kokkos with -DKokkos_ENABLE_Cuda_Lambda:BOOL=ON") + if (Kokkos_VERSION VERSION_LESS 4.1) + if (Kokkos_ENABLE_CUDA AND (NOT "CUDA_LAMBDA" IN_LIST Kokkos_OPTIONS)) + message(FATAL_ERROR + "Please reconfigure Kokkos with -DKokkos_ENABLE_Cuda_Lambda:BOOL=ON") + endif() endif() endif()