HomePhabricator

[ITTNOTIFY] Correct barrier imbalance time in case of tasks

Description

[ITTNOTIFY] Correct barrier imbalance time in case of tasks

ittnotify fix for barrier imbalance time in case tasks exist. In the current
implementation, task execution time is included into aggregated time on a
barrier. This fix calculates task execution time and corrects the arrive time
by subtracting the task execution time.

Since __kmp_invoke_task() can not only be called on a barrier, the field
th.th_bar_arrive_time is used to check if the function was called at the
barrier (th.th_bar_arrive_time != 0). So for this check, th_bar_arrive_time
is set to zero right after the value is used on the barrier.

Differential Revision: http://reviews.llvm.org/D19030

Details

Committed
jlpeytonApr 14 2016, 9:06 AM
Differential Revision
D19030: [ITTNOTIFY] Correct barrier imbalance time in case of tasks
Branches
Unknown
Tags
Unknown