[Openmp-commits] [PATCH] D80843: [OpenMP][OMPT] Fix and add event callbacks for detached tasks

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri May 29 14:48:53 PDT 2020


protze.joachim created this revision.
protze.joachim added reviewers: hbae, AndreyChurbanov.
protze.joachim added a project: OpenMP.
Herald added subscribers: sstefan1, guansong, yaxunl.
Herald added a reviewer: jdoerfert.

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+


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80843

Files:
  openmp/runtime/src/kmp_tasking.cpp
  openmp/runtime/test/ompt/callback.h
  openmp/runtime/test/ompt/tasks/task_early_fulfill.c
  openmp/runtime/test/ompt/tasks/task_late_fulfill.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80843.267373.patch
Type: text/x-patch
Size: 12310 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200529/5d5868b6/attachment-0001.bin>


More information about the Openmp-commits mailing list