From: a-huk Date: Mon, 6 Jul 2026 07:02:26 +0000 (+0200) Subject: ggml-hip: enable -ffast-math for HIP builds (#23862) X-Git-Tag: upstream/0.0.10438~557 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d06ddd35896e2748fc95ccdb46fb260c5af2c029;p=pkg%2Fggml%2Fsources%2Fllama.cpp ggml-hip: enable -ffast-math for HIP builds (#23862) --- diff --git a/ggml/src/ggml-hip/CMakeLists.txt b/ggml/src/ggml-hip/CMakeLists.txt index a7d4e0ea2..72850f26d 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>")