This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][OMPT] Fix and add event callbacks for detached tasks
ClosedPublic

Authored by protze.joachim on May 29 2020, 2:48 PM.

Details

Summary

The OpenMP spec has the task-fulfill event for a call to omp_fulfill_event.
If the task did not yet finish execution, ompt_task_early_fulfill is used, otherwise ompt_task_late_fulfill.
If a task does not complete, when the execution finishes (i.e., the task goes in detached mode), ompt_task_detach instead of ompt_task_complete must be used, when the next task is scheduled.

A test for both cases is included. Only works with clang-11+

Diff Detail

Event Timeline

protze.joachim created this revision.May 29 2020, 2:48 PM
hbae accepted this revision.Jun 1 2020, 2:14 PM

LGTM.

This revision is now accepted and ready to land.Jun 1 2020, 2:14 PM
This revision was automatically updated to reflect the committed changes.