Skip to content

Commit ec40b70

Browse files
committed
linux/gcc version for testing
1 parent 4998f59 commit ec40b70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/FindSIMD.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,21 @@ macro(check_sse type flags)
7777

7878
endmacro()
7979

80-
check_sse("AVX" " ;/arch:AVX")
80+
check_sse("AVX" "-mavx")
8181
if(NOT ${AVX_FOUND})
8282
set(LLAMA_AVX OFF)
8383
else()
8484
set(LLAMA_AVX ON)
8585
endif()
8686

87-
check_sse("AVX2" " ;/arch:AVX2")
87+
check_sse("AVX2" "-mavx2")
8888
if(NOT ${AVX2_FOUND})
8989
set(LLAMA_AVX2 OFF)
9090
else()
9191
set(LLAMA_AVX2 ON)
9292
endif()
9393

94-
check_sse("AVX512" " ;/arch:AVX512")
94+
check_sse("AVX512" "-mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl")
9595
if(NOT ${AVX512_FOUND})
9696
set(LLAMA_AVX512 OFF)
9797
else()

0 commit comments

Comments
 (0)