Skip to content

Commit

Permalink
fix: MSVC needs AVX2 arch
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed Jan 3, 2025
1 parent f0454f6 commit 39f307a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/backend/cpu/x86_x64/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(X86_64)|(x64)|(X64)|(amd64)|(AMD64)
endif()
if(MSVC)
if (MNN_AVX2)
target_compile_options(MNNAVX PRIVATE /arch:AVX)
target_compile_options(MNNAVX PRIVATE /arch:AVX2)
target_compile_options(MNNAVXFMA PRIVATE /arch:AVX2)
endif()
else()
Expand Down

0 comments on commit 39f307a

Please sign in to comment.