We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7a06d commit ab576e1Copy full SHA for ab576e1
Tools/CMake/AMReXParallelBackends.cmake
@@ -366,10 +366,8 @@ if (AMReX_HIP)
366
#
367
target_compile_options(amrex_${D}d PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-munsafe-fp-atomics>)
368
369
- # ROCm 5.5: forgets to enforce C++17 (default seems lower)
370
- # https://github.com/AMReX-Codes/amrex/issues/3337
371
- #
372
- target_compile_options(amrex_${D}d PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-std=c++17>)
+ # Ensure ROCm builds enable at least C++17 without overriding higher standards
+ target_compile_features(amrex_${D}d PUBLIC cxx_std_17)
373
endforeach()
374
375
# Equivalently, relocatable-device-code (RDC) flags are needed for `extern`
0 commit comments