Skip to content

Commit

Permalink
Merge pull request #1067 from dmageeLANL/ats5
Browse files Browse the repository at this point in the history
Enables compilation with nvhpc-sdk.
  • Loading branch information
Yurlungur authored Apr 30, 2024
2 parents 8ced388 + 5ea7542 commit 9d5a909
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 9d5a909

Please sign in to comment.