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

fix bug of -DPADDLE_WITH_SSE3 not set when WITH_AVX AND AVX_FOUND even SSE3_FOUND (#38931)

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