From 0e60489df4f3916dd78a237c204433dd37e4be2e Mon Sep 17 00:00:00 2001 From: Sun Xiaoxia Date: Sat, 29 Oct 2022 07:57:18 +0800 Subject: [PATCH] fix performance degradation on windows platform (#13705) --- src/inference/src/threading/ie_cpu_streams_executor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inference/src/threading/ie_cpu_streams_executor.cpp b/src/inference/src/threading/ie_cpu_streams_executor.cpp index 39916f8b64b..5da560f4600 100644 --- a/src/inference/src/threading/ie_cpu_streams_executor.cpp +++ b/src/inference/src/threading/ie_cpu_streams_executor.cpp @@ -115,7 +115,9 @@ struct CPUStreamsExecutor::Impl { // Prevent conflicts with system scheduling, so default cpu id on big core starts from 1 const auto cpu_idx_offset = selected_core_type == 0 ? _impl->_config._small_core_offset : 1; - _taskArena.reset(new custom::task_arena{max_concurrency}); + _taskArena.reset(new custom::task_arena{custom::task_arena::constraints{} + .set_core_type(selected_core_type) + .set_max_concurrency(max_concurrency)}); CpuSet processMask; int ncpus = 0; std::tie(processMask, ncpus) = GetProcessMask();