Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CPU][ARM] Split ACL build directories for different architectures (#29624)

Arseniy Obolenskiy94e3efbe462e
diff --git a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
index abc5d1c01a6..580db7640f3 100644
--- a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
+++ b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
@@ -140,6 +140,7 @@ elseif(NOT TARGET arm_compute::arm_compute)
# TODO: use data_type_support to disable useless kernels
data_layout_support=all
arch=${OV_CPU_ARM_TARGET_ARCH}
+ build_dir=${OV_CPU_ARM_TARGET_ARCH}
)
if(THREADING STREQUAL "OMP")
@@ -343,9 +344,9 @@ elseif(NOT TARGET arm_compute::arm_compute)
endif()
if(MSVC64)
- set(arm_compute build/arm_compute-static.lib)
+ set(arm_compute build/${OV_CPU_ARM_TARGET_ARCH}/arm_compute-static.lib)
else()
- set(arm_compute build/libarm_compute-static.a)
+ set(arm_compute build/${OV_CPU_ARM_TARGET_ARCH}/libarm_compute-static.a)
endif()
set(arm_compute_full_path "${ARM_COMPUTE_SOURCE_DIR}/${arm_compute}")
diff --git a/src/plugins/intel_cpu/thirdparty/CMakeLists.txt b/src/plugins/intel_cpu/thirdparty/CMakeLists.txt
index 62eafb55cb0..7bea980cb02 100644
--- a/src/plugins/intel_cpu/thirdparty/CMakeLists.txt
+++ b/src/plugins/intel_cpu/thirdparty/CMakeLists.txt
@@ -22,7 +22,7 @@ function(ov_create_acl_version_file)
string(REGEX MATCH "v([0-9]+\\.[0-9]+\\.?[0-9]*)" ACL_VERSION "${ACL_SCONSCRIPT_FILE_CONTENT}")
set(ACL_VERSION "${CMAKE_MATCH_1}")
- set(ACL_VERSION_FILE_PATH "${ACL_ROOT_DIR}/build/src/core/arm_compute_version.embed")
+ set(ACL_VERSION_FILE_PATH "${ACL_ROOT_DIR}/build/${OV_CPU_ARM_TARGET_ARCH}/src/core/arm_compute_version.embed")
file(WRITE ${ACL_VERSION_FILE_PATH} "\"arm_compute_version=v${ACL_VERSION}\"")
endfunction()