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
Removed deprecated ov::affinity property (#28247)
Gorokhov Dmitriy0ea1ecc0025d
diff --git a/docs/articles_en/learn-openvino/openvino-samples/benchmark-tool.rst b/docs/articles_en/learn-openvino/openvino-samples/benchmark-tool.rstindex 8ab8a43031c..5a706061777 100644--- a/docs/articles_en/learn-openvino/openvino-samples/benchmark-tool.rst+++ b/docs/articles_en/learn-openvino/openvino-samples/benchmark-tool.rst@@ -349,7 +349,7 @@ following usage message:[-api {sync,async}] [-nireq NUMBER_INFER_REQUESTS] [-nstreams NUMBER_STREAMS] [-inference_only [INFERENCE_ONLY]][-infer_precision INFER_PRECISION] [-ip {bool,f16,f32,f64,i8,i16,i32,i64,u8,u16,u32,u64}][-op {bool,f16,f32,f64,i8,i16,i32,i64,u8,u16,u32,u64}] [-iop INPUT_OUTPUT_PRECISION] [--mean_values [R,G,B]] [--scale_values [R,G,B]]- [-nthreads NUMBER_THREADS] [-pin {YES,NO,NUMA,HYBRID_AWARE}] [-latency_percentile LATENCY_PERCENTILE]+ [-nthreads NUMBER_THREADS] [-pin {YES,NO}] [-latency_percentile LATENCY_PERCENTILE][-report_type {no_counters,average_counters,detailed_counters}] [-report_folder REPORT_FOLDER] [-pc [PERF_COUNTS]][-pcsort {no_sort,sort,simple_sort}] [-pcseq [PCSEQ]] [-exec_graph_path EXEC_GRAPH_PATH] [-dump_config DUMP_CONFIG] [-load_config LOAD_CONFIG]@@ -462,10 +462,8 @@ following usage message:-nthreads NUMBER_THREADS, --number_threads NUMBER_THREADSNumber of threads to use for inference on the CPU (including HETERO and MULTI cases).- -pin {YES,NO,NUMA,HYBRID_AWARE}, --infer_threads_pinning {YES,NO,NUMA,HYBRID_AWARE}- Optional. Enable threads->cores ('YES' which is OpenVINO runtime's default for conventional CPUs), threads->(NUMA)nodes ('NUMA'),- threads->appropriate core types ('HYBRID_AWARE', which is OpenVINO runtime's default for Hybrid CPUs) or completely disable ('NO') CPU threads- pinning for CPU-involved inference.+ -pin {YES,NO}, --infer_threads_pinning {YES,NO}+ Optional. Enable threads->cores pinning for CPU-involved inference.Statistics dumping options:@@ -577,11 +575,7 @@ following usage message:Device-specific performance options:-nthreads <integer> Optional. Number of threads to use for inference on the CPU (including HETERO and MULTI cases).- -pin <string> ("YES"|"CORE") / "HYBRID_AWARE" / ("NO"|"NONE") / "NUMA" Optional. Explicit inference threads binding options (leave empty to let the OpenVINO make a choice):- enabling threads->cores pinning("YES", which is already default for any conventional CPU),- letting the runtime to decide on the threads->different core types("HYBRID_AWARE", which is default on the hybrid CPUs)- threads->(NUMA)nodes("NUMA") or- completely disable("NO") CPU inference threads pinning+ -pin <string> "YES" / "NO" Optional. Explicit threads->cores pinning for CPU inference tasks (leave empty to let the OpenVINO make a choice).Statistics dumping options:-latency_percentile Optional. Defines the percentile to be reported in latency metric. The valid range is [1, 100]. The default value is 50 (median).diff --git a/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device.rst b/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device.rstindex f1a914e6b9d..30d376e18a6 100644--- a/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device.rst+++ b/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device.rst@@ -357,7 +357,6 @@ All parameters must be set before calling ``ov::Core::compile_model()`` in order- ``ov::hint::enable_hyper_threading``- ``ov::hint::enable_cpu_pinning``- ``ov::num_streams``-- ``ov::affinity``- ``ov::inference_num_threads``- ``ov::cache_dir``- ``ov::intel_cpu::denormals_optimization``@@ -373,8 +372,6 @@ Read-only properties- ``ov::device::full_name``- ``ov::device::capabilities``-.. note::- ``ov::affinity`` is replaced by ``ov::hint::enable_cpu_pinning``. As such, it is deprecated in the 2024.0 release and will be removed in the 2025 release.External Dependencies###########################################################diff --git a/samples/cpp/benchmark_app/benchmark_app.hpp b/samples/cpp/benchmark_app/benchmark_app.hppindex cf38ff6708a..ab7fddb4d7d 100644--- a/samples/cpp/benchmark_app/benchmark_app.hpp+++ b/samples/cpp/benchmark_app/benchmark_app.hpp@@ -179,13 +179,8 @@ static const char infer_num_threads_message[] = "Optional. Number of threads to"(including HETERO and MULTI cases).";// @brief message for CPU threads pinning option-static const char infer_threads_pinning_message[] =- "Optional. Explicit inference threads binding options (leave empty to let the OpenVINO make a choice):\n"- "\t\t\t\tenabling threads->cores pinning(\"YES\", which is already default for any conventional CPU), \n"- "\t\t\t\tletting the runtime to decide on the threads->different core types(\"HYBRID_AWARE\", which is default on "- "the hybrid CPUs) \n"- "\t\t\t\tthreads->(NUMA)nodes(\"NUMA\") or \n"- "\t\t\t\tcompletely disable(\"NO\") CPU inference threads pinning";+static const char infer_threads_pinning_message[] = "Optional. Explicit threads->cores pinning for CPU inference tasks "+ "(leave empty to let the OpenVINO make a choice).";// @brief message for switching memory allocation type optionstatic const char use_device_mem_message[] =@@ -426,8 +421,7 @@ static void show_usage() {std::cout << std::endl;std::cout << "Device-specific performance options:" << std::endl;std::cout << " -nthreads <integer> " << infer_num_threads_message << std::endl;- std::cout << " -pin <string> (\"YES\"|\"CORE\") / \"HYBRID_AWARE\" / (\"NO\"|\"NONE\") / \"NUMA\" "- << infer_threads_pinning_message << std::endl;+ std::cout << " -pin <string> \"YES\" / \"NO\" " << infer_threads_pinning_message << std::endl;std::cout << " -use_device_mem " << use_device_mem_message << std::endl;std::cout << std::endl;std::cout << "Statistics dumping options:" << std::endl;diff --git a/samples/cpp/benchmark_app/main.cpp b/samples/cpp/benchmark_app/main.cppindex 1f1b89c2427..0d025524f82 100644--- a/samples/cpp/benchmark_app/main.cpp+++ b/samples/cpp/benchmark_app/main.cpp@@ -490,21 +490,11 @@ int main(int argc, char* argv[]) {}};- auto fix_pin_option = [](const std::string& str) -> std::string {- if (str == "NO")- return "NONE";- else if (str == "YES")- return "CORE";- else- return str;- };-auto set_nthreads_pin = [&](const std::string& str) {- OPENVINO_SUPPRESS_DEPRECATED_START- auto property_name = str == "nthreads" ? ov::inference_num_threads.name() : ov::affinity.name();+ auto property_name =+ str == "nthreads" ? ov::inference_num_threads.name() : ov::hint::enable_cpu_pinning.name();auto property = str == "nthreads" ? ov::inference_num_threads(int(FLAGS_nthreads))- : ov::affinity(fix_pin_option(FLAGS_pin));- OPENVINO_SUPPRESS_DEPRECATED_END+ : ov::hint::enable_cpu_pinning(FLAGS_pin);if (supported(property_name) || device_name == "AUTO") {// create nthreads/pin primary property for HW device or AUTO if -d is AUTO directly.device_config[property.first] = property.second;diff --git a/src/bindings/c/include/openvino/c/ov_property.h b/src/bindings/c/include/openvino/c/ov_property.hindex 356a46ee74d..502a391ee9a 100644--- a/src/bindings/c/include/openvino/c/ov_property.h+++ b/src/bindings/c/include/openvino/c/ov_property.h@@ -123,13 +123,6 @@ ov_property_key_cache_encryption_callbacks;OPENVINO_C_VAR(const char*)ov_property_key_num_streams;-/**- * @brief Read-write property to set/get the name for setting CPU affinity per thread option.- * @ingroup ov_property_c_api- */-OPENVINO_C_VAR(const char*)-ov_property_key_affinity;-/*** @brief Read-write property<int32_t string> to set/get the maximum number of threads that can be used* for inference tasks.diff --git a/src/bindings/c/src/ov_property.cpp b/src/bindings/c/src/ov_property.cppindex 3786499ab79..61be74ee265 100644--- a/src/bindings/c/src/ov_property.cpp+++ b/src/bindings/c/src/ov_property.cpp@@ -21,7 +21,6 @@ const char* ov_property_key_max_batch_size = "MAX_BATCH_SIZE";const char* ov_property_key_cache_dir = "CACHE_DIR";const char* ov_property_key_cache_mode = "CACHE_MODE";const char* ov_property_key_num_streams = "NUM_STREAMS";-const char* ov_property_key_affinity = "AFFINITY";const char* ov_property_key_inference_num_threads = "INFERENCE_NUM_THREADS";const char* ov_property_key_hint_performance_mode = "PERFORMANCE_HINT";const char* ov_property_key_hint_enable_cpu_pinning = "ENABLE_CPU_PINNING";diff --git a/src/bindings/js/node/src/helper.cpp b/src/bindings/js/node/src/helper.cppindex 09161deb2bc..d5ef4290c6b 100644--- a/src/bindings/js/node/src/helper.cpp+++ b/src/bindings/js/node/src/helper.cpp@@ -414,10 +414,6 @@ Napi::Value any_to_js(const Napi::CallbackInfo& info, ov::Any value) {else if (value.is<int>()) {return Napi::Number::New(info.Env(), value.as<int>());}- // Check for ov::Affinity- else if (value.is<ov::Affinity>()) {- return Napi::String::New(info.Env(), value.as<std::string>());- }// Check for ov::element::Typeelse if (value.is<ov::element::Type>()) {return Napi::String::New(info.Env(), value.as<std::string>());diff --git a/src/bindings/python/src/openvino/properties/__init__.py b/src/bindings/python/src/openvino/properties/__init__.pyindex 371660bcd9f..8553ae56bfb 100644--- a/src/bindings/python/src/openvino/properties/__init__.py+++ b/src/bindings/python/src/openvino/properties/__init__.py@@ -3,7 +3,6 @@# SPDX-License-Identifier: Apache-2.0# Enums-from openvino._pyopenvino.properties import Affinityfrom openvino._pyopenvino.properties import CacheModefrom openvino._pyopenvino.properties import WorkloadTypediff --git a/src/bindings/python/src/openvino/runtime/properties/__init__.py b/src/bindings/python/src/openvino/runtime/properties/__init__.pyindex 3269ea42e32..511c019be8d 100644--- a/src/bindings/python/src/openvino/runtime/properties/__init__.py+++ b/src/bindings/python/src/openvino/runtime/properties/__init__.py@@ -3,7 +3,6 @@# SPDX-License-Identifier: Apache-2.0# Enums-from openvino._pyopenvino.properties import Affinityfrom openvino._pyopenvino.properties import CacheModefrom openvino._pyopenvino.properties import WorkloadType@@ -15,7 +14,6 @@ from openvino._pyopenvino.properties import auto_batch_timeoutfrom openvino._pyopenvino.properties import num_streamsfrom openvino._pyopenvino.properties import inference_num_threadsfrom openvino._pyopenvino.properties import compilation_num_threads-from openvino._pyopenvino.properties import affinityfrom openvino._pyopenvino.properties import force_tbb_terminatefrom openvino._pyopenvino.properties import enable_mmapfrom openvino._pyopenvino.properties import supported_propertiesdiff --git a/src/bindings/python/src/pyopenvino/core/properties/properties.cpp b/src/bindings/python/src/pyopenvino/core/properties/properties.cppindex 564e5f69f5e..d0e3ddb2164 100644--- a/src/bindings/python/src/pyopenvino/core/properties/properties.cpp+++ b/src/bindings/python/src/pyopenvino/core/properties/properties.cpp@@ -14,13 +14,6 @@ void regmodule_properties(py::module m) {// Top submodulepy::module m_properties = m.def_submodule("properties", "openvino.properties submodule");- // Submodule properties - enums- py::enum_<ov::Affinity>(m_properties, "Affinity", py::arithmetic())- .value("NONE", ov::Affinity::NONE)- .value("CORE", ov::Affinity::CORE)- .value("NUMA", ov::Affinity::NUMA)- .value("HYBRID_AWARE", ov::Affinity::HYBRID_AWARE);-py::enum_<ov::WorkloadType>(m_properties, "WorkloadType", py::arithmetic()).value("DEFAULT", ov::WorkloadType::DEFAULT).value("EFFICIENT", ov::WorkloadType::EFFICIENT);@@ -38,9 +31,6 @@ void regmodule_properties(py::module m) {wrap_property_RW(m_properties, ov::num_streams, "num_streams");wrap_property_RW(m_properties, ov::inference_num_threads, "inference_num_threads");wrap_property_RW(m_properties, ov::compilation_num_threads, "compilation_num_threads");- OPENVINO_SUPPRESS_DEPRECATED_START- wrap_property_RW(m_properties, ov::affinity, "affinity");- OPENVINO_SUPPRESS_DEPRECATED_ENDwrap_property_RW(m_properties, ov::force_tbb_terminate, "force_tbb_terminate");wrap_property_RW(m_properties, ov::enable_mmap, "enable_mmap");wrap_property_RW(m_properties, ov::weights_path, "weights_path");diff --git a/src/bindings/python/src/pyopenvino/utils/utils.cpp b/src/bindings/python/src/pyopenvino/utils/utils.cppindex bd1520119bd..7ddab55129d 100644--- a/src/bindings/python/src/pyopenvino/utils/utils.cpp+++ b/src/bindings/python/src/pyopenvino/utils/utils.cpp@@ -217,8 +217,6 @@ py::object from_ov_any(const ov::Any& any) {return py::cast(any.as<ov::device::Type>());} else if (any.is<ov::streams::Num>()) {return py::cast(any.as<ov::streams::Num>());- } else if (any.is<ov::Affinity>()) {- return py::cast(any.as<ov::Affinity>());} else if (any.is<ov::WorkloadType>()) {return py::cast(any.as<ov::WorkloadType>());} else if (any.is<ov::CacheMode>()) {@@ -372,9 +370,7 @@ ov::AnyMap py_object_to_any_map(const py::object& py_obj) {for (auto& item : py::cast<py::dict>(py_obj)) {std::string key = py::cast<std::string>(item.first);py::object value = py::cast<py::object>(item.second);- if (py::isinstance<ov::Affinity>(value)) {- return_value[key] = py::cast<ov::Affinity>(value);- } else if (py_object_is_any_map(value)) {+ if (py_object_is_any_map(value)) {return_value[key] = Common::utils::py_object_to_any_map(value);} else {return_value[key] = Common::utils::py_object_to_any(value);@@ -449,8 +445,6 @@ ov::Any py_object_to_any(const py::object& py_obj) {return py::cast<ov::device::Type>(py_obj);} else if (py::isinstance<ov::streams::Num>(py_obj)) {return py::cast<ov::streams::Num>(py_obj);- } else if (py::isinstance<ov::Affinity>(py_obj)) {- return py::cast<ov::Affinity>(py_obj);} else if (py::isinstance<ov::WorkloadType>(py_obj)) {return py::cast<ov::WorkloadType>(py_obj);} else if (py::isinstance<ov::Tensor>(py_obj)) {diff --git a/src/bindings/python/tests/test_runtime/test_properties.py b/src/bindings/python/tests/test_runtime/test_properties.pyindex 6065d72196b..61fb7442987 100644--- a/src/bindings/python/tests/test_runtime/test_properties.py+++ b/src/bindings/python/tests/test_runtime/test_properties.py@@ -45,15 +45,6 @@ def test_properties_rw_base():@pytest.mark.parametrize(("ov_enum", "expected_values"),[- (- props.Affinity,- (- (props.Affinity.NONE, "Affinity.NONE", -1),- (props.Affinity.CORE, "Affinity.CORE", 0),- (props.Affinity.NUMA, "Affinity.NUMA", 1),- (props.Affinity.HYBRID_AWARE, "Affinity.HYBRID_AWARE", 2),- ),- ),(props.CacheMode,(@@ -259,11 +250,6 @@ def test_properties_ro(ov_property_ro, expected_value):"COMPILATION_NUM_THREADS",((44, 44),),),- (- props.affinity,- "AFFINITY",- ((props.Affinity.NONE, props.Affinity.NONE),),- ),(props.force_tbb_terminate, "FORCE_TBB_TERMINATE", ((True, True), (False, False))),(props.enable_mmap, "ENABLE_MMAP", ((True, True), (False, False))),(@@ -539,7 +525,6 @@ def test_single_property_setting(device):props.enable_profiling(True),props.cache_dir("./"),props.inference_num_threads(9),- props.affinity(props.Affinity.NONE),hints.inference_precision(Type.f32),hints.performance_mode(hints.PerformanceMode.LATENCY),hints.enable_cpu_pinning(True),@@ -554,7 +539,6 @@ def test_single_property_setting(device):props.enable_profiling: True,props.cache_dir: "./",props.inference_num_threads: 9,- props.affinity: props.Affinity.NONE,hints.inference_precision: Type.f32,hints.performance_mode: hints.PerformanceMode.LATENCY,hints.enable_cpu_pinning: True,@@ -568,7 +552,6 @@ def test_single_property_setting(device):props.enable_profiling: True,"CACHE_DIR": "./",props.inference_num_threads: 9,- props.affinity: "NONE","INFERENCE_PRECISION_HINT": Type.f32,hints.performance_mode: hints.PerformanceMode.LATENCY,hints.scheduling_core_type: hints.SchedulingCoreType.PCORE_ONLY,@@ -589,7 +572,6 @@ def test_core_cpu_properties(properties_to_set):assert core.get_property("CPU", props.enable_profiling) is Trueassert core.get_property("CPU", props.cache_dir) == "./"assert core.get_property("CPU", props.inference_num_threads) == 9- assert core.get_property("CPU", props.affinity) == props.Affinity.NONEassert core.get_property("CPU", streams.num) == 5# RO propertiesdiff --git a/src/inference/dev_api/openvino/runtime/threading/istreams_executor.hpp b/src/inference/dev_api/openvino/runtime/threading/istreams_executor.hppindex 3630c2bb5a6..29b96f402a4 100644--- a/src/inference/dev_api/openvino/runtime/threading/istreams_executor.hpp+++ b/src/inference/dev_api/openvino/runtime/threading/istreams_executor.hpp@@ -51,19 +51,6 @@ public:Task task;};- /**- * @brief Defines inference thread binding type- */- enum ThreadBindingType : std::uint8_t {- NONE, //!< Don't bind the inference threads- CORES, //!< Bind inference threads to the CPU cores (round-robin)- // the following modes are implemented only for the TBB code-path:- NUMA, //!< Bind to the NUMA nodes (default mode for the non-hybrid CPUs on the Win/MacOS, where the 'CORES' is- //!< not implemeneted)- HYBRID_AWARE //!< Let the runtime bind the inference threads depending on the cores type (default mode for the- //!< hybrid CPUs)- };-/*** @brief Defines IStreamsExecutor configuration*/diff --git a/src/inference/include/openvino/runtime/properties.hpp b/src/inference/include/openvino/runtime/properties.hppindex 8baea3ed408..28538f0f60e 100644--- a/src/inference/include/openvino/runtime/properties.hpp+++ b/src/inference/include/openvino/runtime/properties.hpp@@ -1289,64 +1289,6 @@ static constexpr Property<int32_t, PropertyMutability::RW> inference_num_threads*/static constexpr Property<int32_t, PropertyMutability::RW> compilation_num_threads{"COMPILATION_NUM_THREADS"};-/**- * @brief Enum to define possible affinity patterns- * @ingroup ov_runtime_cpp_prop_api- */-enum class Affinity {- NONE = -1, //!< Disable threads affinity pinning- CORE = 0, //!< Pin threads to cores, best for static benchmarks- NUMA = 1, //!< Pin threads to NUMA nodes, best for real-life, contented cases. On the Windows and MacOS* this- //!< option behaves as CORE- HYBRID_AWARE = 2, //!< Let the runtime to do pinning to the cores types, e.g. prefer the "big" cores for latency- //!< tasks. On the hybrid CPUs this option is default-};--/** @cond INTERNAL */-inline std::ostream& operator<<(std::ostream& os, const Affinity& affinity) {- switch (affinity) {- case Affinity::NONE:- return os << "NONE";- case Affinity::CORE:- return os << "CORE";- case Affinity::NUMA:- return os << "NUMA";- case Affinity::HYBRID_AWARE:- return os << "HYBRID_AWARE";- default:- OPENVINO_THROW("Unsupported affinity pattern");- }-}--inline std::istream& operator>>(std::istream& is, Affinity& affinity) {- std::string str;- is >> str;- if (str == "NONE") {- affinity = Affinity::NONE;- } else if (str == "CORE") {- affinity = Affinity::CORE;- } else if (str == "NUMA") {- affinity = Affinity::NUMA;- } else if (str == "HYBRID_AWARE") {- affinity = Affinity::HYBRID_AWARE;- } else {- OPENVINO_THROW("Unsupported affinity pattern: ", str);- }- return is;-}-/** @endcond */--/**- * @deprecated Use ov::hint::enable_cpu_pinning- * @brief The name for setting CPU affinity per thread option.- * @ingroup ov_runtime_cpp_prop_api- * @note The setting is ignored, if the OpenVINO compiled with OpenMP and any affinity-related OpenMP's- * environment variable is set (as affinity is configured explicitly)- */-OPENVINO_DEPRECATED(- "This property is deprecated and will be removed soon. Use ov::hint::enable_cpu_pinning instead of it.")-static constexpr Property<Affinity> affinity{"AFFINITY"};-/*** @brief The devices that the inference task been executed.* @ingroup ov_runtime_cpp_prop_apidiff --git a/src/plugins/auto/src/cumulative_schedule.cpp b/src/plugins/auto/src/cumulative_schedule.cppindex a607205e17d..2cd26032114 100644--- a/src/plugins/auto/src/cumulative_schedule.cpp+++ b/src/plugins/auto/src/cumulative_schedule.cpp@@ -73,10 +73,7 @@ void CumuSchedule::init() {idx++;} else {cpu_device_information = device;- OPENVINO_SUPPRESS_DEPRECATED_START- cpu_device_information.config.insert(- {ov::affinity.name(), ov::Any(ov::Affinity::CORE).as<std::string>()});- OPENVINO_SUPPRESS_DEPRECATED_END+ cpu_device_information.config.insert({ov::hint::enable_cpu_pinning.name(), "YES"});}}if (!cpu_device_information.device_name.empty())diff --git a/src/plugins/auto/src/plugin.cpp b/src/plugins/auto/src/plugin.cppindex 2371107281d..1ee6c5bfe14 100644--- a/src/plugins/auto/src/plugin.cpp+++ b/src/plugins/auto/src/plugin.cpp@@ -130,17 +130,13 @@ std::vector<DeviceInformation> Plugin::parse_meta_devices(const std::string& priif (get_device_name() == "MULTI") {auto is_set_numstreams = properties.find(ov::num_streams.name()) != properties.end();- OPENVINO_SUPPRESS_DEPRECATED_START- auto is_set_affinity = properties.find(ov::affinity.name()) != properties.end();- OPENVINO_SUPPRESS_DEPRECATED_ENDauto is_set_numthreads = properties.find(ov::inference_num_threads.name()) != properties.end();- if (!is_set_perfhint && !is_set_affinity && !is_set_numthreads && !is_set_device_properties&& !is_set_numstreams) {+ if (!is_set_perfhint && !is_set_numthreads && !is_set_device_properties&& !is_set_numstreams) {// setting tput as the default performance mode if// 1. no hints setting for MULTI plugin- // 2. no affinity setting for MULTI plugin- // 3. no inference_num_threads setting for MULTI plugin- // 4. no ov::device::properties(secondary properties) setting for target device- // 5. no ov::num_streams setting for target device+ // 2. no inference_num_threads setting for MULTI plugin+ // 3. no ov::device::properties(secondary properties) setting for target device+ // 4. no ov::num_streams setting for target devicedevice_config[ov::hint::performance_mode.name()] = ov::hint::PerformanceMode::THROUGHPUT;}}diff --git a/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_executable_network/properties.cpp b/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_executable_network/properties.cppindex 73a56d1506b..7b4978892cb 100644--- a/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_executable_network/properties.cpp+++ b/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_executable_network/properties.cpp@@ -23,29 +23,6 @@ INSTANTIATE_TEST_SUITE_P(::testing::ValuesIn(inproperties)),OVClassCompiledModelPropertiesIncorrectTests::getTestCaseName);-#if (defined(__APPLE__) || defined(_WIN32))-auto default_affinity = [] {- auto numaNodes = ov::get_available_numa_nodes();- auto coreTypes = ov::get_available_cores_types();- if (coreTypes.size() > 1) {- return ov::Affinity::HYBRID_AWARE;- } else if (numaNodes.size() > 1) {- return ov::Affinity::NUMA;- } else {- return ov::Affinity::NONE;- }-}();-#else-auto default_affinity = [] {- auto coreTypes = ov::get_available_cores_types();- if (coreTypes.size() > 1) {- return ov::Affinity::HYBRID_AWARE;- } else {- return ov::Affinity::CORE;- }-}();-#endif-const std::vector<ov::AnyMap> multi_properties = {{ov::device::priorities(ov::test::utils::DEVICE_TEMPLATE), ov::num_streams(ov::streams::AUTO)},};diff --git a/src/plugins/intel_cpu/src/compiled_model.cpp b/src/plugins/intel_cpu/src/compiled_model.cppindex f81c7dbbced..fe347f3b4e2 100644--- a/src/plugins/intel_cpu/src/compiled_model.cpp+++ b/src/plugins/intel_cpu/src/compiled_model.cpp@@ -258,10 +258,6 @@ ov::Any CompiledModel::get_property(const std::string& name) const {RO_property(ov::hint::kv_cache_precision.name()),};- OPENVINO_SUPPRESS_DEPRECATED_START- ro_properties.insert(ro_properties.end(), RO_property(ov::affinity.name()));- OPENVINO_SUPPRESS_DEPRECATED_END-return ro_properties;}@@ -277,21 +273,6 @@ ov::Any CompiledModel::get_property(const std::string& name) const {const auto streams = config.streamExecutorConfig.get_streams();return decltype(ov::num_streams)::value_type(streams); // ov::num_streams has special negative values (AUTO = -1, NUMA = -2)- OPENVINO_SUPPRESS_DEPRECATED_START- } else if (name == ov::affinity) {- const auto affinity = config.threadBindingType;- switch (affinity) {- case IStreamsExecutor::ThreadBindingType::NONE:- return ov::Affinity::NONE;- case IStreamsExecutor::ThreadBindingType::CORES:- return ov::Affinity::CORE;- case IStreamsExecutor::ThreadBindingType::NUMA:- return ov::Affinity::NUMA;- case IStreamsExecutor::ThreadBindingType::HYBRID_AWARE:- return ov::Affinity::HYBRID_AWARE;- }- return ov::Affinity::NONE;- OPENVINO_SUPPRESS_DEPRECATED_END} else if (name == ov::inference_num_threads) {const auto num_threads = config.streamExecutorConfig.get_threads();return decltype(ov::inference_num_threads)::value_type(num_threads);diff --git a/src/plugins/intel_cpu/src/config.cpp b/src/plugins/intel_cpu/src/config.cppindex 7d1ee05897e..594523e6973 100644--- a/src/plugins/intel_cpu/src/config.cpp+++ b/src/plugins/intel_cpu/src/config.cpp@@ -25,29 +25,6 @@ using namespace ov::threading;using namespace dnnl::impl::cpu::x64;Config::Config() {- // this is default mode-#if defined(__APPLE__) || defined(_WIN32)- threadBindingType = IStreamsExecutor::NONE;-#else- threadBindingType = IStreamsExecutor::CORES;-#endif--// for the TBB code-path, additional configuration depending on the OS and CPU types-#if (OV_THREAD == OV_THREAD_TBB || OV_THREAD == OV_THREAD_TBB_AUTO)-# if defined(__APPLE__) || defined(_WIN32)- // 'CORES' is not implemented for Win/MacOS; so the 'NONE' or 'NUMA' is default- auto numaNodes = get_available_numa_nodes();- if (numaNodes.size() > 1) {- threadBindingType = IStreamsExecutor::NUMA;- } else {- threadBindingType = IStreamsExecutor::NONE;- }-# endif-- if (get_available_cores_types().size() > 1 /*Hybrid CPU*/) {- threadBindingType = IStreamsExecutor::HYBRID_AWARE;- }-#endifCPU_DEBUG_CAP_ENABLE(applyDebugCapsProperties());updateProperties();@@ -93,47 +70,6 @@ void Config::readProperties(const ov::AnyMap& prop, const ModelType modelType) {streamsChanged = true;}}- OPENVINO_SUPPRESS_DEPRECATED_START- } else if (key == ov::affinity.name()) {- try {- changedCpuPinning = true;- ov::Affinity affinity = val.as<ov::Affinity>();-#if defined(__APPLE__)- enableCpuPinning = false;- threadBindingType = affinity == ov::Affinity::NONE ? IStreamsExecutor::ThreadBindingType::NONE- : IStreamsExecutor::ThreadBindingType::NUMA;-#else- enableCpuPinning =- (affinity == ov::Affinity::CORE || affinity == ov::Affinity::HYBRID_AWARE) ? true : false;- switch (affinity) {- case ov::Affinity::NONE:- threadBindingType = IStreamsExecutor::ThreadBindingType::NONE;- break;- case ov::Affinity::CORE: {- threadBindingType = IStreamsExecutor::ThreadBindingType::CORES;- } break;- case ov::Affinity::NUMA:- threadBindingType = IStreamsExecutor::ThreadBindingType::NUMA;- break;- case ov::Affinity::HYBRID_AWARE:- threadBindingType = IStreamsExecutor::ThreadBindingType::HYBRID_AWARE;- break;- default:- OPENVINO_THROW("Wrong value ",- val.as<std::string>(),- "for property key ",- key,- ". Expected only ov::Affinity::CORE/NUMA/HYBRID_AWARE.");- }-#endif- } catch (const ov::Exception&) {- OPENVINO_THROW("Wrong value ",- val.as<std::string>(),- "for property key ",- key,- ". Expected only ov::Affinity::CORE/NUMA/HYBRID_AWARE.");- }- OPENVINO_SUPPRESS_DEPRECATED_END} else if (key == ov::hint::performance_mode.name()) {try {hintPerfMode = !changedHintPerfMode ? val.as<ov::hint::PerformanceMode>() : hintPerfMode;diff --git a/src/plugins/intel_cpu/src/config.h b/src/plugins/intel_cpu/src/config.hindex 1aa08f4412f..5a347b1fa30 100644--- a/src/plugins/intel_cpu/src/config.h+++ b/src/plugins/intel_cpu/src/config.h@@ -64,8 +64,6 @@ struct Config {bool streamsChanged = false;int threads = 0;int threadsPerStream = 0;- ov::threading::IStreamsExecutor::ThreadBindingType threadBindingType =- ov::threading::IStreamsExecutor::ThreadBindingType::NONE;ov::hint::PerformanceMode hintPerfMode = ov::hint::PerformanceMode::LATENCY;std::vector<std::vector<int>> streamsRankTable;bool changedHintPerfMode = false;diff --git a/src/plugins/intel_cpu/src/plugin.cpp b/src/plugins/intel_cpu/src/plugin.cppindex b3c2aa0b298..dff002f275d 100644--- a/src/plugins/intel_cpu/src/plugin.cpp+++ b/src/plugins/intel_cpu/src/plugin.cpp@@ -320,21 +320,6 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& options)const auto streams = engConfig.streamExecutorConfig.get_streams();return decltype(ov::num_streams)::value_type(streams); // ov::num_streams has special negative values (AUTO = -1, NUMA = -2)- OPENVINO_SUPPRESS_DEPRECATED_START- } else if (name == ov::affinity) {- const auto affinity = engConfig.threadBindingType;- switch (affinity) {- case IStreamsExecutor::ThreadBindingType::NONE:- return ov::Affinity::NONE;- case IStreamsExecutor::ThreadBindingType::CORES:- return ov::Affinity::CORE;- case IStreamsExecutor::ThreadBindingType::NUMA:- return ov::Affinity::NUMA;- case IStreamsExecutor::ThreadBindingType::HYBRID_AWARE:- return ov::Affinity::HYBRID_AWARE;- }- return ov::Affinity::NONE;- OPENVINO_SUPPRESS_DEPRECATED_END} else if (name == ov::device::id.name()) {return decltype(ov::device::id)::value_type{engConfig.device_id};} else if (name == ov::inference_num_threads) {@@ -437,10 +422,6 @@ ov::Any Plugin::get_ro_property(const std::string& name, const ov::AnyMap& optioRW_property(ov::hint::kv_cache_precision.name()),};- OPENVINO_SUPPRESS_DEPRECATED_START- rwProperties.insert(rwProperties.end(), RW_property(ov::affinity.name()));- OPENVINO_SUPPRESS_DEPRECATED_END-std::vector<ov::PropertyName> supportedProperties;supportedProperties.reserve(roProperties.size() + rwProperties.size());supportedProperties.insert(supportedProperties.end(), roProperties.begin(), roProperties.end());diff --git a/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_executable_network/properties.cpp b/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_executable_network/properties.cppindex 73086b78a0d..073faba7f8d 100644--- a/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_executable_network/properties.cpp+++ b/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_executable_network/properties.cpp@@ -24,7 +24,6 @@ TEST_F(OVClassConfigTestCPU, smoke_CpuExecNetworkSupportedPropertiesAreAvailableRO_property(ov::model_name.name()),RO_property(ov::optimal_number_of_infer_requests.name()),RO_property(ov::num_streams.name()),- RO_property(ov::affinity.name()),RO_property(ov::inference_num_threads.name()),RO_property(ov::enable_profiling.name()),RO_property(ov::hint::inference_precision.name()),diff --git a/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_plugin/properties.cpp b/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_plugin/properties.cppindex 904d2b81dc0..f72df3f58b6 100644--- a/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_plugin/properties.cpp+++ b/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_plugin/properties.cpp@@ -39,7 +39,6 @@ TEST_F(OVClassConfigTestCPU, smoke_PluginAllSupportedPropertiesAreAvailable) {RO_property(ov::device::architecture.name()),// read writeRW_property(ov::num_streams.name()),- RW_property(ov::affinity.name()),RW_property(ov::inference_num_threads.name()),RW_property(ov::enable_profiling.name()),RW_property(ov::hint::inference_precision.name()),@@ -149,67 +148,6 @@ TEST_F(OVClassConfigTestCPU, smoke_PluginSetConfigStreamsNum) {ASSERT_GT(value, 0); // value has been configured automatically}-TEST_F(OVClassConfigTestCPU, smoke_PluginSetConfigAffinity) {- ov::Core ie;--#if defined(__APPLE__)- ov::Affinity value = ov::Affinity::CORE;- auto defaultBindThreadParameter = ov::Affinity::NONE;-#else- ov::Affinity value = ov::Affinity::NUMA;-# if defined(_WIN32)- auto defaultBindThreadParameter = ov::Affinity::NONE;-# else- auto defaultBindThreadParameter = ov::Affinity::CORE;-# endif-#endif- auto coreTypes = ov::get_available_cores_types();- if (coreTypes.size() > 1) {- defaultBindThreadParameter = ov::Affinity::HYBRID_AWARE;- }-- OV_ASSERT_NO_THROW(value = ie.get_property("CPU", ov::affinity));- ASSERT_EQ(defaultBindThreadParameter, value);-- const ov::Affinity affinity =- defaultBindThreadParameter == ov::Affinity::HYBRID_AWARE ? ov::Affinity::NUMA : ov::Affinity::HYBRID_AWARE;- OV_ASSERT_NO_THROW(ie.set_property("CPU", ov::affinity(affinity)));- OV_ASSERT_NO_THROW(value = ie.get_property("CPU", ov::affinity));-#if defined(__APPLE__)- ASSERT_EQ(ov::Affinity::NUMA, value);-#else- ASSERT_EQ(affinity, value);-#endif-}--TEST_F(OVClassConfigTestCPU, smoke_PluginSetConfigAffinityCore) {- ov::Core ie;- ov::Affinity affinity = ov::Affinity::CORE;- bool value = false;-- OV_ASSERT_NO_THROW(ie.set_property("CPU", ov::affinity(affinity)));- OV_ASSERT_NO_THROW(value = ie.get_property("CPU", ov::hint::enable_cpu_pinning));-#if defined(__APPLE__)- ASSERT_EQ(false, value);-#else- ASSERT_EQ(true, value);-#endif-- affinity = ov::Affinity::HYBRID_AWARE;- OV_ASSERT_NO_THROW(ie.set_property("CPU", ov::affinity(affinity)));- OV_ASSERT_NO_THROW(value = ie.get_property("CPU", ov::hint::enable_cpu_pinning));-#if defined(__APPLE__)- ASSERT_EQ(false, value);-#else- ASSERT_EQ(true, value);-#endif-- affinity = ov::Affinity::NUMA;- OV_ASSERT_NO_THROW(ie.set_property("CPU", ov::affinity(affinity)));- OV_ASSERT_NO_THROW(value = ie.get_property("CPU", ov::hint::enable_cpu_pinning));- ASSERT_EQ(false, value);-}-#if defined(OPENVINO_ARCH_ARM) || defined(OPENVINO_ARCH_ARM64)const auto expected_precision_for_performance_mode = ov::intel_cpu::hasHardwareSupport(ov::element::f16) ? ov::element::f16 : ov::element::f32;#elsediff --git a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/behavior/compiled_model/properties.cpp b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/behavior/compiled_model/properties.cppindex f15127c1dab..f473bb96306 100644--- a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/behavior/compiled_model/properties.cpp+++ b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/behavior/compiled_model/properties.cpp@@ -21,39 +21,6 @@ INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,::testing::ValuesIn(inproperties)),OVClassCompiledModelPropertiesIncorrectTests::getTestCaseName);-#if (defined(__APPLE__) || defined(_WIN32))-auto default_affinity = [] {- auto numaNodes = ov::get_available_numa_nodes();- auto coreTypes = ov::get_available_cores_types();- if (coreTypes.size() > 1) {- return ov::Affinity::HYBRID_AWARE;- } else if (numaNodes.size() > 1) {- return ov::Affinity::NUMA;- } else {- return ov::Affinity::NONE;- }-}();-#else-auto default_affinity = [] {- auto coreTypes = ov::get_available_cores_types();- if (coreTypes.size() > 1) {- return ov::Affinity::HYBRID_AWARE;- } else {- return ov::Affinity::CORE;- }-}();-#endif--const std::vector<ov::AnyMap> default_properties = {- {ov::affinity(default_affinity)},-};--INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,- OVClassCompiledModelPropertiesDefaultTests,- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_CPU),- ::testing::ValuesIn(default_properties)),- OVClassCompiledModelPropertiesDefaultTests::getTestCaseName);-INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,OVCompiledModelPropertiesDefaultSupportedTests,::testing::Values(ov::test::utils::DEVICE_CPU),diff --git a/src/plugins/intel_cpu/tools/dump_check/dump_check.py b/src/plugins/intel_cpu/tools/dump_check/dump_check.pyindex 163552a67b1..3317abc3459 100644--- a/src/plugins/intel_cpu/tools/dump_check/dump_check.py+++ b/src/plugins/intel_cpu/tools/dump_check/dump_check.py@@ -91,12 +91,12 @@ class IEB:fmt = "@4sHBB7IB3BLLLL"magic, ver = b'IEB0', 256-+precision = -1for k,v in IEB.precision_table.items():if (v[0] == nparray.dtype):precision = k-+assert(precision >= 0)ndims = len(nparray.shape)@@ -113,7 +113,7 @@ class IEB:dims[0], dims[1], dims[2], dims[3], dims[4], dims[5], dims[6],scaling_axis, reserved[0], reserved[1], reserved[2],data_offset, data_size, scaling_data_offset, scaling_data_size)-+with open(ieb_file,"wb") as f:f.write(header)f.write(nparray.tobytes())@@ -132,7 +132,7 @@ class IEB:(dtype, type_size, ) = IEB.precision_table[self.precision]count = self.data_size//type_size-+# recover the data as numpy arrayself.dims = np.array([self.dims0, self.dims1, self.dims2, self.dims3, self.dims4, self.dims5, self.dims6])self.dims = self.dims[0:self.ndims]@@ -166,7 +166,6 @@ def dump_tensors(core, model, dump_dir = "./cpu_dump", dump_ports="OUT", device_mkdirp(dump_dir)device_config = {"PERF_COUNT": "NO",- "AFFINITY": "CORE","PERFORMANCE_HINT_NUM_REQUESTS":0,"PERFORMANCE_HINT":"LATENCY","INFERENCE_PRECISION_HINT": "f32",@@ -185,7 +184,7 @@ def dump_tensors(core, model, dump_dir = "./cpu_dump", dump_ports="OUT", device_print(f" {i}")print("infer with dump..")-+result = req.infer(inputs)# dump result as ieb, so even no dump_ports, you can still know@@ -208,7 +207,7 @@ def dump_tensors(core, model, dump_dir = "./cpu_dump", dump_ports="OUT", device_pass_manager = Manager()pass_manager.register_pass(Serialize(path_to_xml=xml_path, path_to_bin=bin_path))pass_manager.run_passes(runtime_func)-+print(f"{device_target} Runtime model (exec_graph) is serialized to {xml_path}.")@@ -217,7 +216,7 @@ def visualize_diff_abs(diff_abs):cur_shape = diff_abs.shapeif len(vis_abs.shape) > 3:vis_abs = vis_abs.reshape(-1,cur_shape[-2],cur_shape[-1])-+fig, ax = plt.subplots()# first channel with diff@@ -315,10 +314,10 @@ def compare_dumps(model, atol, rtol, visualize, dump_dir1, dump_dir2):if not f2:print("{}[ SKIPPED ]: not found {} in {} {}".format(Colors.YELLOW, f1[-1], dump_dir2, Colors.END))continue-+ieb_file1 = f1[-1]ieb_file2 = f2[-1]- # compare+ # compareieb1 = IEB(os.path.join(dump_dir1, ieb_file1))ieb2 = IEB(os.path.join(dump_dir2, ieb_file2))@@ -345,7 +344,7 @@ def compare_dumps(model, atol, rtol, visualize, dump_dir1, dump_dir2):info = ""if (np.prod(diff_abs.shape) < 8):info = "{} vs {}".format(ieb1.value.reshape(-1), ieb2.value.reshape(-1))-+max_abs = np.amax(diff_abs[idx])max_idx = np.where(diff_abs[idx] >= max_abs)max_org = np.abs(ieb2.value)[idx][max_idx]diff --git a/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp b/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cppindex 2c70ec46079..656b35747af 100644--- a/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp+++ b/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp@@ -333,13 +333,6 @@ OVPropertiesTestsWithCompileModelProps::getRWOptionalPropertiesValues(res.push_back({ov::compilation_num_threads(1)});}- if (props.empty() || std::find(props.begin(), props.end(), ov::affinity.name()) != props.end()) {- ov::Affinity affinities[] = {ov::Affinity::NONE , ov::Affinity::CORE, ov::Affinity::NUMA, ov::Affinity::HYBRID_AWARE};- for (auto &affinity : affinities) {- res.push_back({ov::affinity(affinity)});- }- }-if (props.empty() || std::find(props.begin(), props.end(), ov::hint::enable_hyper_threading.name()) != props.end()) {res.push_back({ov::hint::enable_hyper_threading(true)});res.push_back({ov::hint::enable_hyper_threading(false)});@@ -391,10 +384,6 @@ OVPropertiesTestsWithCompileModelProps::getWrongRWOptionalPropertiesValues(res.push_back({{ov::compilation_num_threads.name(), -1}});}- if (props.empty() || std::find(props.begin(), props.end(), ov::affinity.name()) != props.end()) {- res.push_back({{ov::affinity.name(), -5}});- }-if (props.empty() || std::find(props.begin(), props.end(), ov::hint::enable_hyper_threading.name()) != props.end()) {res.push_back({{ov::hint::enable_hyper_threading.name(), -1}});}diff --git a/tests/samples_tests/smoke_tests/test_benchmark_app.py b/tests/samples_tests/smoke_tests/test_benchmark_app.pyindex 3be4f4b88ea..d19efbcebae 100755--- a/tests/samples_tests/smoke_tests/test_benchmark_app.py+++ b/tests/samples_tests/smoke_tests/test_benchmark_app.py@@ -69,9 +69,8 @@ def verify(sample_language, device, api=None, nireq=None, shape=None, data_shapeassert 'CPU' in config_jsonassert not nstreams or config_json['CPU']['NUM_STREAMS'] == nstreamsassert (not pin- or pin == 'YES' and config_json['CPU']['AFFINITY'] == 'CORE'- or pin == 'NO' and config_json['CPU']['AFFINITY'] == 'NONE'- or pin == config_json['CPU']['AFFINITY'])+ or pin == 'YES' and config_json['CPU']['ENABLE_CPU_PINNING'] == 'YES'+ or pin == 'NO' and config_json['CPU']['ENABLE_CPU_PINNING'] == 'NO')@pytest.mark.parametrize('sample_language', ['C++', 'Python'])@@ -96,7 +95,7 @@ def test_max_irate(sample_language, device, max_irate, cache, tmp_path):@pytest.mark.skipif('CPU' not in get_devices(), reason='affinity is a CPU property')@pytest.mark.parametrize('sample_language', ['C++', 'Python'])[email protected]('pin', ['YES', 'NO', 'NUMA', 'HYBRID_AWARE'])[email protected]('pin', ['YES', 'NO'])def test_pin(sample_language, pin, cache, tmp_path):verify(sample_language, 'CPU', pin=pin, nstreams='2', cache=cache, tmp_path=tmp_path)diff --git a/tools/benchmark_tool/openvino/tools/benchmark/main.py b/tools/benchmark_tool/openvino/tools/benchmark/main.pyindex acec4d17bdc..f1e11d764f2 100755--- a/tools/benchmark_tool/openvino/tools/benchmark/main.py+++ b/tools/benchmark_tool/openvino/tools/benchmark/main.py@@ -288,11 +288,6 @@ def main():returndef set_nthreads_pin(property_name, property_value):- if property_name == properties.affinity():- if property_value == "YES":- property_value = properties.Affinity.CORE- elif property_value == "NO":- property_value = properties.Affinity.NONEif property_name in supported_properties or device_name == AUTO_DEVICE_NAME:# create nthreads/pin primary property for HW device or AUTO if -d is AUTO directly.config[device][property_name] = property_value@@ -309,7 +304,7 @@ def main():if is_flag_set_in_command_line('pin'):## set for CPU to user defined value- set_nthreads_pin(properties.affinity(), args.infer_threads_pinning)+ set_nthreads_pin(properties.hint.enable_cpu_pinning(), args.infer_threads_pinning)set_throughput_streams()set_infer_precision()diff --git a/tools/benchmark_tool/openvino/tools/benchmark/parameters.py b/tools/benchmark_tool/openvino/tools/benchmark/parameters.pyindex dac2b1490bf..2c505ccd6bd 100644--- a/tools/benchmark_tool/openvino/tools/benchmark/parameters.py+++ b/tools/benchmark_tool/openvino/tools/benchmark/parameters.py@@ -149,12 +149,8 @@ def parse_args():devp.add_argument('-nthreads', '--number_threads', type=int, required=False, default=None,help='Number of threads to use for inference on the CPU ''(including HETERO and MULTI cases).')- devp.add_argument('-pin', '--infer_threads_pinning', type=str, required=False, choices=['YES', 'NO', 'NUMA', 'HYBRID_AWARE'],- help='Optional. Enable threads->cores (\'YES\' which is OpenVINO runtime\'s default for conventional CPUs), '- 'threads->(NUMA)nodes (\'NUMA\'), '- 'threads->appropriate core types (\'HYBRID_AWARE\', which is OpenVINO runtime\'s default for Hybrid CPUs) '- 'or completely disable (\'NO\') '- 'CPU threads pinning for CPU-involved inference.')+ devp.add_argument('-pin', '--infer_threads_pinning', type=str, required=False, choices=['YES', 'NO'],+ help='Optional. Enable threads->cores pinning for CPU-involved inference.')stat = parser.add_argument_group('Statistics dumping options')stat.add_argument('-latency_percentile', '--latency_percentile', type=int, required=False, default=50,diff --git a/tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py b/tools/benchmark_tool/openvino/tools/benchmark/utils/utils.pyindex c705a3d8325..45569c35db6 100644--- a/tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py+++ b/tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py@@ -766,8 +766,6 @@ def device_properties_to_string(config):for sk, sv in v.items():if isinstance(sv, bool):sv = "YES" if sv else "NO"- if isinstance(sv, properties.Affinity):- sv = sv.namesub_str += "{0}:{1},".format(sk, sv)sub_str = sub_str[:-1]sub_str += "}"@@ -808,7 +806,7 @@ def dump_config(filename, config):for key, value in device_config.items():if isinstance(value, OVAny) and (isinstance(value.value, dict)):value_string = device_properties_to_string(value.get())- elif isinstance(value, (properties.hint.PerformanceMode, properties.Affinity)):+ elif isinstance(value, properties.hint.PerformanceMode):value_string = value.nameelif isinstance(value, OVAny):value_string = str(value.value)