Remove fallback to portable SIMD instructions on unknown compilers

This commit is contained in:
Alex Spataru 2024-11-18 21:34:43 -05:00
parent 10892291c2
commit d3fcdad9be

View File

@ -62,7 +62,6 @@ else()
add_compile_definitions(SIMDE_NO_NATIVE)
endif()
# Enable OpenMP SIMD support globally
find_package(OpenMP QUIET)
if(OpenMP_CXX_FOUND)
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
@ -75,8 +74,3 @@ if(OpenMP_CXX_FOUND)
else()
message(WARNING "OpenMP not found; SIMD performance may be suboptimal")
endif()
if(NOT (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_C_COMPILER_ID STREQUAL "MSVC"))
message(WARNING "Unknown compiler; using portable fallback")
add_compile_definitions(SIMDE_NO_NATIVE)
endif()