Skip to content

Commit d06ddd3

Browse files
authored
ggml-hip: enable -ffast-math for HIP builds (ggml-org#23862)
1 parent 898b088 commit d06ddd3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ggml/src/ggml-hip/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,5 @@ if (GGML_HIP_RCCL)
155155
endif()
156156

157157
target_link_libraries(ggml-hip PRIVATE ggml-base hip::host roc::rocblas roc::hipblas)
158+
159+
target_compile_options(ggml-hip PRIVATE "$<$<COMPILE_LANGUAGE:HIP>:-ffast-math>")

0 commit comments

Comments
 (0)