Skip to content

Commit

Permalink
cmake : add a flag to disable F16C (ggerganov#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
a5huynh authored Mar 22, 2023
1 parent aec01bb commit fc49c44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ else()
if(NOT WHISPER_NO_FMA)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfma")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mf16c")
if(NOT WHISPER_NO_F16C)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mf16c")
endif()
endif()
endif()
endif()
Expand Down

0 comments on commit fc49c44

Please sign in to comment.