HIP: use -O0 for host code in debug builds (#29795)

This commit is contained in:
Johannes Gäßler authored and GitHub committed 2026-10-06 13:53:00 +02:00
1 parent f0c41e0168
commit 4f54067615
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH})
list(APPEND CMAKE_PREFIX_PATH "${ROCM_PATH}/lib64/cmake")
if (NOT DEFINED CMAKE_HIP_FLAGS_DEBUG)
set(CMAKE_HIP_FLAGS_DEBUG "-g -O2")
set(CMAKE_HIP_FLAGS_DEBUG "-g -Xarch_device -O2 -Xarch_host -O0")
endif()
# CMake on Windows doesn't support the HIP language yet