Skip to content

Commit

Permalink
improved check for sve support
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantPrabhuFujitsu committed Dec 30, 2024
1 parent 4ac995b commit 4b77153
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmake/developer_package/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ if(ENABLE_AVX512F)
endif()

if(ENABLE_SVE)
if ((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13))
set(ENABLE_SVE OFF CACHE BOOL "" FORCE)
endif()
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10))
ov_check_compiler_supports_sve("-march=armv8-a+sve")

if(NOT CXX_HAS_SVE)
set(ENABLE_SVE OFF CACHE BOOL "" FORCE)
endif()
endif()

0 comments on commit 4b77153

Please sign in to comment.