提交 c70a3fec 编写于 作者: T tensor-tang

fix redefinition of argument machine

上级 7a4924cd
......@@ -50,20 +50,14 @@ if(NOT WITH_PROFILER)
endif(NOT WITH_PROFILER)
if(NOT CMAKE_CROSSCOMPILING)
set(SIMD_FLAG)
if(WITH_AVX)
if (AVX512F_FOUND)
set(SIMD_FLAG "${SIMD_FLAG} ${AVX512F_FLAG}")
endif()
if (AVX2_FOUND)
set(SIMD_FLAG "${SIMD_FLAG} ${AVX2_FLAG}")
endif()
if (AVX_FOUND)
set(SIMD_FLAG "${SIMD_FLAG} ${AVX_FLAG}")
endif()
if (SSE3_FOUND)
set(SIMD_FLAG "${SIMD_FLAG} ${SSE3_FLAG}")
endif()
if(WITH_AVX AND AVX512F_FOUND)
set(SIMD_FLAG ${AVX512F_FLAG})
elseif(WITH_AVX AND AVX2_FOUND)
set(SIMD_FLAG ${AVX2_FLAG})
elseif(WITH_AVX AND AVX_FOUND)
set(SIMD_FLAG ${AVX_FLAG})
elseif(SSE3_FOUND)
set(SIMD_FLAG ${SSE3_FLAG})
endif()
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册