MNN icon indicating copy to clipboard operation
MNN copied to clipboard

vs2022 x86下编译错误

Open dym21 opened this issue 7 months ago • 2 comments

[build] E:\sourcecode\MNN\source\backend\cpu\x86_x64\avx\GemmInt8.cpp(1535,32): error C3861: '_mm256_extract_epi64': identifier not found

cmake编译选项: C:\Devtools\cmake-3.31.4-windows-x86_64\bin\cmake.EXE -DCMAKE_BUILD_TYPE=Debug -DMNN_BUILD_SHARED_LIBS=OFF -DMNN_WIN_RUNTIME_MT=OFF -SE:/sourcecode/MNN -BE:/sourcecode/MNN/build/vs2022-x86-debug -G "Visual Studio 17 2022" -T host=x86 -A Win32

dym21 avatar May 21 '25 03:05 dym21

加上-DMNN_USE_SSE=OFF

maoyapeng avatar May 21 '25 16:05 maoyapeng

可能是你的编译器不支持 AVX2 ,加上 -DMNN_AVX2=OFF 可以关掉 AVX2 相关的编译。也可以加 -DMNN_USE_SSE=OFF 关掉所有 simd 优化(不推荐)。

jxt1234 avatar May 23 '25 08:05 jxt1234

Marking as stale. No activity in 60 days.

github-actions[bot] avatar Jul 22 '25 10:07 github-actions[bot]