1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Disable POWER10, targets POWER8 instead
Forwarded: not-needed
Origin: https://src.fedoraproject.org/rpms/onnxruntime/blob/f40/f/disable-power10.patch
Author: Alejandro Álvarez Ayllón <a.alvarezayllon@gmail.com>
--- a/cmake/onnxruntime_mlas.cmake
+++ b/cmake/onnxruntime_mlas.cmake
@@ -452,7 +452,8 @@
set_source_files_properties(${MLAS_SRC_DIR}/power/QuantizePowerVSX.cpp PROPERTIES COMPILE_FLAGS "-mcpu=power9")
endif()
- check_cxx_compiler_flag("-mcpu=power10" HAS_POWER10)
+ #check_cxx_compiler_flag("-mcpu=power10" HAS_POWER10)
+ set(HAS_POWER10 OFF)
if(HAS_POWER10)
set(CMAKE_REQUIRED_FLAGS "-mcpu=power10")
check_cxx_source_compiles("
|