commit 98f83b4a11348c00f86c07f0de9e2d8675ae0804
parent 84294fce8d090f4e4f06d43d11780aeb9d818f76
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 29 Apr 2021 15:23:24 +0200
Update the detection of the SIMD support
Diffstat:
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -58,18 +58,11 @@ else()
option(SSF_USE_SIMD_128 "Enable the SIMD-128 instruction sets" ON)
option(SSF_USE_SIMD_256 "Enable the SIMD-256 instruction sets" ON)
- if(CMAKE_COMPILER_IS_GNUCC)
- include(CheckCCompilerFlag)
- CHECK_C_COMPILER_FLAG("-msse2" SSE2)
- CHECK_C_COMPILER_FLAG("-msse4.1" SSE4_1)
- CHECK_C_COMPILER_FLAG("-mavx" AVX)
- endif()
-
- if(SSF_USE_SIMD_128 AND NOT SSE2)
+ if(SSF_USE_SIMD_128 AND NOT RSIMD_SSE2)
get_property(_docstring CACHE SSF_USE_SIMD_128 PROPERTY HELPSTRING)
set(SSF_USE_SIMD_128 OFF CACHE BOOL ${_docstring} FORCE)
endif()
- if(SSF_USE_SIMD_256 AND NOT AVX)
+ if(SSF_USE_SIMD_256 AND NOT RSIMD_AVX)
get_property(_docstring CACHE SSF_USE_SIMD_256 PROPERTY HELPSTRING)
set(SSF_USE_SIMD_128 OFF CACHE BOOL ${_docstring} FORCE)
endif()