Skip to content

Setting parallel to tbb static partitioner or tbb auto partitoner by thread pool #30167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

sunxiaoxia2022
Copy link
Contributor

@sunxiaoxia2022 sunxiaoxia2022 commented Apr 16, 2025

Details:

  • Setting parallel to TBB STATIC partitioner or TBB AUTO partitioner through by thread pool
  • ...

Tickets:

@sunxiaoxia2022 sunxiaoxia2022 requested review from a team as code owners April 16, 2025 03:43
@github-actions github-actions bot added category: Core OpenVINO Core (aka ngraph) category: CPU OpenVINO CPU plugin category: build OpenVINO cmake script / infra category: CPP API OpenVINO CPP API bindings labels Apr 16, 2025
@@ -48,6 +53,15 @@
# include "tbb/task_arena.h"
# include "tbb/task_scheduler_observer.h"

static TBB_PARTITIONOR tbb_partitioner = TBB_STATIC;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Different model can use different TBB partitioner to run inference in parallel.

Please change this shared configuration to model related or stream executor related configuration.

@mlukasze mlukasze requested a review from ilya-lavrenov April 17, 2025 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra category: Core OpenVINO Core (aka ngraph) category: CPP API OpenVINO CPP API bindings category: CPU OpenVINO CPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants