]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml-hip: enable -ffast-math for HIP builds (#23862)
authora-huk <redacted>
Mon, 6 Jul 2026 07:02:26 +0000 (09:02 +0200)
committerGitHub <redacted>
Mon, 6 Jul 2026 07:02:26 +0000 (15:02 +0800)
ggml/src/ggml-hip/CMakeLists.txt

index a7d4e0ea2b5326ab3188d9b356a7e03f819a9b83..72850f26db9a36d901a010063dc0f130241af43b 100644 (file)
@@ -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 "$<$<COMPILE_LANGUAGE:HIP>:-ffast-math>")