Skip to content

Commit

Permalink
Enables compilation with nvhpc-sdk.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmageeLANL committed Apr 30, 2024
1 parent 8ced388 commit 5ea7542
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ endif()
# Therefore, we don't use the Kokkos_ENABLE_CUDA_CONSTEXPR option add the flag manually.
# Also, not checking for NVIDIA as nvcc_wrapper is identified as GNU so we just make sure
# the flag is not added when compiling with Clang for Cuda.
if (Kokkos_ENABLE_CUDA AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if (Kokkos_ENABLE_CUDA AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC" )
target_compile_options(parthenon PUBLIC --expt-relaxed-constexpr)
endif()

Expand Down

0 comments on commit 5ea7542

Please sign in to comment.