[CPU] Optimize ScaledDotProductAttention performance (#21412)
This commit is contained in:
@@ -125,7 +125,7 @@ macro(ov_avx2_optimization_flags flags)
|
||||
set(${flags} -xCORE-AVX2)
|
||||
endif()
|
||||
elseif(OV_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(${flags} -mavx2 -mfma)
|
||||
set(${flags} -mavx2 -mfma -mf16c)
|
||||
else()
|
||||
message(WARNING "Unsupported CXX compiler ${CMAKE_CXX_COMPILER_ID}")
|
||||
endif()
|
||||
@@ -147,7 +147,7 @@ macro(ov_avx512_optimization_flags flags)
|
||||
set(${flags} -xCOMMON-AVX512)
|
||||
endif()
|
||||
elseif(OV_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(${flags} -mavx512f -mfma)
|
||||
set(${flags} -mavx512f -mfma -mf16c)
|
||||
else()
|
||||
message(WARNING "Unsupported CXX compiler ${CMAKE_CXX_COMPILER_ID}")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user