From 59cf4cd29961faef8379605b03fd74a0a11152f5 Mon Sep 17 00:00:00 2001 From: Sichao25 Date: Mon, 23 Mar 2026 12:33:23 -0400 Subject: [PATCH 1/3] remove CUDA_LAMBDA from cmake --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f0dc29e..975ccccf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,10 +98,6 @@ 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") - endif() endif() bob_option(Omega_h_MEM_SPACE_SHARED "Whether to use shared memory space" OFF) From b2b9c478ac9aae4bbd92d5d3dfe014e2f6a951b8 Mon Sep 17 00:00:00 2001 From: Sichao25 Date: Mon, 23 Mar 2026 12:36:22 -0400 Subject: [PATCH 2/3] remove cuda_lambda from self hosted ci --- .github/workflows/pr_comment_trigger_self_hosted.yml | 1 - 1 file changed, 1 deletion(-) 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 From 9ef7e56fc6dcd814adff7cd518723bc792e4a7e5 Mon Sep 17 00:00:00 2001 From: Sichao25 Date: Mon, 23 Mar 2026 13:09:25 -0400 Subject: [PATCH 3/3] make Kokkos cuda lambda check conditional --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 975ccccf..a4602bd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,12 @@ 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_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() bob_option(Omega_h_MEM_SPACE_SHARED "Whether to use shared memory space" OFF)