Skip to content

Commit 955e0d7

Browse files
committed
workaround for HIP Debug
1 parent 2c36716 commit 955e0d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ if(QUOKKA_ENABLE_AMREX_HYDRO)
146146
add_subdirectory(${QuokkaCode_SOURCE_DIR}/extern/AMReX-Hydro ${QuokkaCode_BINARY_DIR}/AMReX-Hydro)
147147
endif()
148148
add_subdirectory(${QuokkaCode_SOURCE_DIR}/extern/fmt ${QuokkaCode_BINARY_DIR}/fmt)
149+
if(AMReX_GPU_BACKEND MATCHES "HIP")
150+
target_compile_definitions(fmt PRIVATE FMT_USE_ASSERTIONS=0)
151+
endif()
149152
add_subdirectory(${QuokkaCode_SOURCE_DIR}/extern/yaml-cpp ${QuokkaCode_BINARY_DIR}/yaml-cpp)
150153
add_subdirectory(${QuokkaCode_SOURCE_DIR}/extern/turbulence/plugins/AMReX ${QuokkaCode_BINARY_DIR}/turbulence)
151154

0 commit comments

Comments
 (0)