File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ option(LLAMA_AVX "llama: enable AVX"
56
56
option (LLAMA_AVX2 "llama: enable AVX2" ON )
57
57
option (LLAMA_AVX512 "llama: enable AVX512" OFF )
58
58
option (LLAMA_FMA "llama: enable FMA" ON )
59
+ # in MSVC F16C is implied with AVX2/AVX512
60
+ if (NOT MSVC )
61
+ option (LLAMA_F16C "llama: enable F16C" ON )
62
+ endif ()
59
63
60
64
# 3rd party libs
61
65
option (LLAMA_ACCELERATE "llama: enable Accelerate framework" ON )
@@ -207,7 +211,9 @@ elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^(x86_64|i686|AMD64)$")
207
211
add_compile_options (/arch:AVX )
208
212
endif ()
209
213
else ()
210
- add_compile_options (-mf16c )
214
+ if (LLAMA_F16C )
215
+ add_compile_options (-mf16c )
216
+ endif ()
211
217
if (LLAMA_FMA )
212
218
add_compile_options (-mfma )
213
219
endif ()
You can’t perform that action at this time.
0 commit comments