OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CPU][ARM] Fix ACL version detection (#26208)
Aleksandr Voron59924d44dd07
diff --git a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmakeindex 72ea407f327..4097619c41f 100644--- a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake+++ b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake@@ -391,5 +391,5 @@ elseif(NOT TARGET arm_compute::arm_compute)endforeach()# required by oneDNN to attempt to parse ACL version- set(ENV{ACL_ROOT_DIR} "${ARM_COMPUTE_SOURCE_DIR}")+ set(ACL_INCLUDE_DIR "${ARM_COMPUTE_SOURCE_DIR}")endif()diff --git a/src/plugins/intel_cpu/thirdparty/CMakeLists.txt b/src/plugins/intel_cpu/thirdparty/CMakeLists.txtindex ef6b56ea77f..6f5f7a93e93 100644--- a/src/plugins/intel_cpu/thirdparty/CMakeLists.txt+++ b/src/plugins/intel_cpu/thirdparty/CMakeLists.txt@@ -15,6 +15,17 @@ if(ENABLE_LTO)set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)endif()+function(ov_create_acl_version_file)+ set(ACL_ROOT_DIR "${intel_cpu_thirdparty_SOURCE_DIR}/ComputeLibrary")+ set(ACL_SCONSCRIPT_FILE_PATH "${ACL_ROOT_DIR}/SConscript")+ file(READ ${ACL_SCONSCRIPT_FILE_PATH} ACL_SCONSCRIPT_FILE_CONTENT)+ 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")+ file(WRITE ${ACL_VERSION_FILE_PATH} "\"arm_compute_version=v${ACL_VERSION}\"")+endfunction()+function(ov_add_onednn)set(CMAKE_COMPILE_WARNING_AS_ERROR OFF)set(CMAKE_DISABLE_FIND_PACKAGE_PythonInterp ON)@@ -120,6 +131,9 @@ function(ov_add_onednn)# to find our FindACL.cmakeif(DNNL_USE_ACL)list(APPEND CMAKE_MODULE_PATH "${intel_cpu_thirdparty_SOURCE_DIR}")+ # oneDNN needs arm_compute_version.embed file to detect ACL version+ # since the file has not been generated yet, it is created manually+ ov_create_acl_version_file()endif()add_subdirectory(onednn EXCLUDE_FROM_ALL)diff --git a/src/plugins/intel_cpu/thirdparty/onednn b/src/plugins/intel_cpu/thirdparty/onednnindex 740efd8194f..234b3796f11 160000--- a/src/plugins/intel_cpu/thirdparty/onednn+++ b/src/plugins/intel_cpu/thirdparty/onednn@@ -1 +1 @@-Subproject commit 740efd8194fbc72ba4e495c7fe57c3cf51361048+Subproject commit 234b3796f11f7c303d2ce76081b15a945919c115