Skip to content

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

[ARM] Use OpenMP in ACL build if `THREADING=OMP` (#26619)

Aleksandr Voron0861d86c0897
diff --git a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
index 4097619c41f..bca6e673723 100644
--- a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
+++ b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
@@ -131,8 +131,6 @@ elseif(NOT TARGET arm_compute::arm_compute)
set(ARM_COMPUTE_OPTIONS
neon=1
opencl=0
- openmp=0
- cppthreads=1
examples=0
Werror=0
gemm_tuner=0
@@ -146,6 +144,14 @@ elseif(NOT TARGET arm_compute::arm_compute)
arch=${OV_CPU_ARM_TARGET_ARCH}
)
+ if(THREADING STREQUAL "OMP")
+ list(APPEND ARM_COMPUTE_OPTIONS openmp=1
+ cppthreads=0)
+ else()
+ list(APPEND ARM_COMPUTE_OPTIONS openmp=0
+ cppthreads=1)
+ endif()
+
if(ARM)
list(APPEND ARM_COMPUTE_OPTIONS estate=32)
else()