Skip to content

Conversation

@aobolensk
Copy link
Contributor

@aobolensk aobolensk commented Nov 19, 2025

Details:

The problem is that TBB detection logic in src/cmake/ov_parallel.cmake is being invoked multiple times during configuration if -DTHREADING=TBB or -DTHREADING=TBB_AUTO are used. It works correctly only for TBB_ADAPTIVE case.

This patch fixes operator precedence in the check to avoid re-discovery of TBB on each ov_find_package_tbb() and as a result ov_set_threading_interface_for() CMake functions invocations

Tickets:

  • N/A

@aobolensk aobolensk requested a review from a team as a code owner November 19, 2025 09:32
@github-actions github-actions bot added category: inference OpenVINO Runtime library - Inference category: build OpenVINO cmake script / infra labels Nov 19, 2025
Previously the TBB detection logic in ov_parallel.cmake ran multiple times during configuration

This patch fixes operator presedence in the check to avoid re-discovery of TBB on each ov_find_package_tbb() and as a result ov_set_threading_interface_for() CMake functions invocations
Copy link
Contributor

@praasz praasz left a comment

Choose a reason for hiding this comment

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

Is there any current CI pipeline which fails because repeated discovery?

@praasz praasz added this to the 2026.0 milestone Nov 20, 2025
@aobolensk
Copy link
Contributor Author

Is there any current CI pipeline which fails because repeated discovery?

No, in practice it is harmless, just extra operations are being performed

@praasz praasz added this pull request to the merge queue Nov 20, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 20, 2025
@aobolensk aobolensk added this pull request to the merge queue Nov 20, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 20, 2025
@aobolensk aobolensk added this pull request to the merge queue Nov 20, 2025
Merged via the queue into openvinotoolkit:master with commit b3e6b10 Nov 20, 2025
206 checks passed
@aobolensk aobolensk deleted the tbb-detection-fix branch November 20, 2025 23:10
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: inference OpenVINO Runtime library - Inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants