Commit 4f5406761 for llama.cpp

commit 4f5406761517648c23dbd60ea5ade37f77a316c9
Author: Johannes Gäßler <johannesg@5d6.de>
Date:   Tue Oct 6 13:53:00 2026 +0200

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

diff --git a/ggml/src/ggml-hip/CMakeLists.txt b/ggml/src/ggml-hip/CMakeLists.txt
index a6a6b7271..75d4d60e8 100644
--- a/ggml/src/ggml-hip/CMakeLists.txt
+++ b/ggml/src/ggml-hip/CMakeLists.txt
@@ -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