From e83cc534d4bb8e7c76433adad010cce3cc6fc9d8 Mon Sep 17 00:00:00 2001 From: Rajalakshmi Srinivasaraghavan Date: Fri, 10 Sep 2021 16:36:44 -0500 Subject: [PATCH] Fix cmake POWER10 detection Recent commit 60c98a8 changed variable mlas_common_srcs which affects POWER10 detection. --- cmake/onnxruntime_mlas.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/onnxruntime_mlas.cmake b/cmake/onnxruntime_mlas.cmake index ec593cb8e1..a3de6438d9 100644 --- a/cmake/onnxruntime_mlas.cmake +++ b/cmake/onnxruntime_mlas.cmake @@ -299,7 +299,7 @@ else() HAS_P10_RUNTIME ) if (HAS_P10_RUNTIME) - set_source_files_properties(${mlas_common_srcs} PROPERTIES COMPILE_FLAGS "-DPOWER10") + set_source_files_properties(${MLAS_SRC_DIR}/platform.cpp PROPERTIES COMPILE_FLAGS "-DPOWER10") endif() set(mlas_platform_srcs_power10 ${MLAS_SRC_DIR}/power/SgemmKernelPOWER10.cpp