Skip to content

Commit 9f1555f

Browse files
MNNTeamxiaying
authored andcommitted
add -msse3 to fix _mm_hadd_ps problem when use gcc
1 parent 74cdc89 commit 9f1555f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/backend/cpu/x86_x64/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(X86_64)|(x64)|(X64)|(amd64)|(AMD64)
1919
if(WIN32 OR MSVC)
2020
target_compile_options(MNNAVX PRIVATE /arch:AVX)
2121
else()
22+
target_compile_options(MNNSSE PRIVATE -msse3)
2223
target_compile_options(MNNAVX PRIVATE -mavx)
2324
if (MNN_FMA_ENABLE)
2425
target_compile_options(MNNAVX PRIVATE -mfma)

0 commit comments

Comments
 (0)