Skip to content

Conversation

@akukanov
Copy link
Contributor

@akukanov akukanov commented Aug 1, 2025

Description

This change is cherry-picked from the oneTBB main branch, commit 681b96e.
The points where TBB worker threads issue ITT "task end" notifications (on the detection of a new task group context and on the leave of the task dispatch loop) may lead to significant delays with those, sometimes way after completion of the algorithm the "tasks" are supposed to indicate. That leads to skewed results in profiling tools that "consume" the ITT calls.

The patch proposes a change to issue the notification earlier, namely after two unsuccessful attempts to find a non-local task (via stealing, etc.).

Type of change

  • bug fix - change that fixes an issue

Tests

  • not needed

Documentation

  • not needed

Breaks backward compatibility?

  • No

Other information

@akukanov akukanov changed the base branch from master to onetbb_2021.2_ov August 1, 2025 21:48
@akukanov akukanov removed the allocator label Aug 1, 2025
@akukanov akukanov changed the title Dev/improve itt task end ov akukanov Issue ITT task end notifications with less delay Aug 1, 2025
@akukanov akukanov changed the title Issue ITT task end notifications with less delay Send ITT task end notifications with less delay Aug 1, 2025
@akukanov akukanov marked this pull request as ready for review August 5, 2025 21:44
@akukanov akukanov marked this pull request as draft August 5, 2025 21:44
Do not postpone the notifications for more than just a few unsuccessful attempts to find a non-local task, in order to avoid skewed results in profiling tools.

(cherry picked from commit 681b96e)
@akukanov akukanov force-pushed the dev/improve-itt-task-end-ov-akukanov branch from 99ef3ad to 13af25d Compare August 19, 2025 17:38
@akukanov akukanov changed the title Send ITT task end notifications with less delay Send ITT task end notifications with less delay (OV branch) Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant