未验证 提交 adb54eb0 编写于 作者: S Sing_chan 提交者: GitHub

block unknown option /arch:SSE3 (#37439)

* block unknown option /arch:SSE3

* modify according to zhouwei's comment
上级 bbb9b28a
......@@ -32,11 +32,9 @@ if(WITH_AVX AND AVX_FOUND)
set(SIMD_FLAG ${AVX_FLAG})
add_definitions(-DPADDLE_WITH_AVX)
elseif(SSE3_FOUND)
set(SIMD_FLAG ${SSE3_FLAG})
endif()
if (SSE3_FOUND)
# TODO: Runtime detection should be used here.
if(NOT WIN32)
set(SIMD_FLAG ${SSE3_FLAG})
endif()
add_definitions(-DPADDLE_WITH_SSE3)
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册