Skip to content

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

[ARM][CPU] Build CPU plugin on Windows ARM devices (#26010)

Nesterov Alexander29a05f546266
diff --git a/cmake/features.cmake b/cmake/features.cmake
index 7f1ea6806e2..6794bf06ccf 100644
--- a/cmake/features.cmake
+++ b/cmake/features.cmake
@@ -8,7 +8,7 @@
ov_option (ENABLE_PROXY "Proxy plugin for OpenVINO Runtime" ON)
-if(WIN32 AND AARCH64 AND OV_COMPILER_IS_CLANG)
+if(WIN32 AND AARCH64 AND NOT CMAKE_CL_64)
set(ENABLE_INTEL_CPU_DEFAULT OFF)
else()
set(ENABLE_INTEL_CPU_DEFAULT ON)
@@ -138,7 +138,18 @@ ov_option(ENABLE_OV_JAX_FRONTEND "Enable JAX FrontEnd" ON)
ov_option(ENABLE_OV_IR_FRONTEND "Enable IR FrontEnd" ON)
ov_option(ENABLE_OV_TF_FRONTEND "Enable TensorFlow FrontEnd" ON)
ov_option(ENABLE_OV_TF_LITE_FRONTEND "Enable TensorFlow Lite FrontEnd" ON)
-ov_dependent_option(ENABLE_SNAPPY_COMPRESSION "Enables compression support for TF FE" ON
+
+if(WIN32 AND AARCH64 AND CMAKE_CL_64)
+ # Failed: openvino/src/bindings/js/node/thirdparty/node-lib.def: no such file or directory
+ set(ENABLE_JS_DEFAULT OFF)
+ # Some flags for building are failed on clang-cl win arm in snappy compression lib
+ set(ENABLE_SNAPPY_COMPRESSION_DEFAULT OFF)
+else()
+ set(ENABLE_JS_DEFAULT ON)
+ set(ENABLE_SNAPPY_COMPRESSION_DEFAULT ON)
+endif()
+
+ov_dependent_option(ENABLE_SNAPPY_COMPRESSION "Enables compression support for TF FE" ${ENABLE_SNAPPY_COMPRESSION_DEFAULT}
"ENABLE_OV_TF_FRONTEND" OFF)
ov_dependent_option (ENABLE_STRICT_DEPENDENCIES "Skip configuring \"convinient\" dependencies for efficient parallel builds" ON "ENABLE_TESTS;ENABLE_OV_ONNX_FRONTEND" OFF)
@@ -186,7 +197,7 @@ ov_dependent_option (ENABLE_SYSTEM_SNAPPY "Enables use of system version of Snap
ov_dependent_option (ENABLE_PYTHON_PACKAGING "Enables packaging of Python API in APT / YUM" OFF
"ENABLE_PYTHON;UNIX" OFF)
-ov_dependent_option(ENABLE_JS "Enables JS API building" ON "NOT ANDROID;NOT EMSCRIPTEN" OFF)
+ov_dependent_option(ENABLE_JS "Enables JS API building" ${ENABLE_JS_DEFAULT} "NOT ANDROID;NOT EMSCRIPTEN" OFF)
ov_option(ENABLE_OPENVINO_DEBUG "Enable output for OPENVINO_DEBUG statements" OFF)
diff --git a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
index a142b527720..72ea407f327 100644
--- a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
+++ b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
@@ -119,6 +119,8 @@ elseif(NOT TARGET arm_compute::arm_compute)
set(extra_cxx_flags "${CMAKE_CXX_FLAGS} -Wno-undef")
if(MSVC64)
+ # Recommended Win ARM arch build in https://arm-software.github.io/ComputeLibrary/latest/how_to_build.xhtml
+ set(OV_CPU_ARM_TARGET_ARCH armv8a)
# clang-cl does not recognize /MP option
string(REPLACE "/MP " "" extra_cxx_flags "${extra_cxx_flags}")
elseif(CMAKE_POSITION_INDEPENDENT_CODE)
diff --git a/thirdparty/gtest/gtest b/thirdparty/gtest/gtest
index 70a225df5dd..f163ae4a3a3 160000
--- a/thirdparty/gtest/gtest
+++ b/thirdparty/gtest/gtest
@@ -1 +1 @@
-Subproject commit 70a225df5dd55bd5931664fadaa67765eb9f6016
+Subproject commit f163ae4a3a35f61626b7d7f5b9aa85d799e10b84