From d06ddd35896e2748fc95ccdb46fb260c5af2c029 Mon Sep 17 00:00:00 2001 From: a-huk <56552991+a-huk@users.noreply.github.com> Date: Mon, 6 Jul 2026 09:02:26 +0200 Subject: [PATCH] ggml-hip: enable -ffast-math for HIP builds (#23862) --- ggml/src/ggml-hip/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ggml/src/ggml-hip/CMakeLists.txt b/ggml/src/ggml-hip/CMakeLists.txt index a7d4e0ea2b..72850f26db 100644 --- a/ggml/src/ggml-hip/CMakeLists.txt +++ b/ggml/src/ggml-hip/CMakeLists.txt @@ -155,3 +155,5 @@ if (GGML_HIP_RCCL) endif() target_link_libraries(ggml-hip PRIVATE ggml-base hip::host roc::rocblas roc::hipblas) + +target_compile_options(ggml-hip PRIVATE "$<$:-ffast-math>")