Skip to content

Commit

Permalink
Tentative arguments switch for nvcc 12+
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed May 3, 2023
1 parent 4846d47 commit a906356
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/kokkos_arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ ENDIF()
GLOBAL_SET(KOKKOS_CUDA_OPTIONS)
# Construct the Makefile options
IF(KOKKOS_CXX_COMPILER_ID STREQUAL NVIDIA)
GLOBAL_APPEND(KOKKOS_CUDA_OPTIONS "-expt-extended-lambda")
# Extended lambda support was stabilized in nvcc 12
IF(KOKKOS_COMPILER_VERSION_MAJOR EQUAL 11)
GLOBAL_APPEND(KOKKOS_CUDA_OPTIONS "-expt-extended-lambda")
ELSE()
GLOBAL_APPEND(KOKKOS_CUDA_OPTIONS "-extended-lambda")
ENDIF()
GLOBAL_APPEND(KOKKOS_CUDA_OPTIONS "-Wext-lambda-captures-this")
ENDIF()

Expand Down

0 comments on commit a906356

Please sign in to comment.