Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/plugins/intel_cpu/src/cpu_parallel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class CpuParallel {
void activate() const {
#if OV_THREAD == OV_THREAD_TBB_ADAPTIVE
dnnl_threadpool_interop_set_max_concurrency(get_num_threads());
// oneDNN uses this value when estimating scratchpad outside an active parallel region.
// Keep it aligned with the real worker pool size: AUTO may raise max_concurrency via
// virtual threads for scheduling, but scratchpad is still needed only for worker threads.
dnnl_threadpool_interop_set_scratchpad_concurrency(get_num_worker_threads());
Comment thread
liubo-intel marked this conversation as resolved.
Comment on lines +48 to +51
#endif
}

Expand Down
Loading