We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec40b70 commit 3cc91b2Copy full SHA for 3cc91b2
cmake/FindSIMD.cmake
@@ -77,6 +77,7 @@ macro(check_sse type flags)
77
78
endmacro()
79
80
+# flags are for MSVC only!
81
check_sse("AVX" "-mavx")
82
if(NOT ${AVX_FOUND})
83
set(LLAMA_AVX OFF)
@@ -85,7 +86,8 @@ else()
85
86
endif()
87
88
check_sse("AVX2" "-mavx2")
-if(NOT ${AVX2_FOUND})
89
+check_sse("FMA" "-mfma")
90
+if((NOT ${AVX2_FOUND}) OR (NOT ${FMA_FOUND}))
91
set(LLAMA_AVX2 OFF)
92
else()
93
set(LLAMA_AVX2 ON)
0 commit comments