hip: compile debug builds with -O2 on hip to avoid a compiler bug (llama/20392)

This commit is contained in:
uvos
2026-03-16 13:10:15 +02:00
committed by Georgi Gerganov
parent 5267523829
commit f5ba865378
+4
View File
@@ -11,6 +11,10 @@ endif()
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")
endif()
# CMake on Windows doesn't support the HIP language yet
if (WIN32)
set(CXX_IS_HIPCC TRUE)