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

This commit is contained in:
Johannes Gäßler
2026-10-19 09:47:10 +02:00
committed by Daniel Bevenius
parent 673f4f8367
commit 227a5e5282
+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