[all-commits] [llvm/llvm-project] 10995c: [OpenMP][OMPT] Fix and add event callbacks for det...

Joachim via All-commits all-commits at lists.llvm.org
Tue Jun 2 00:54:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 10995c77b4766ad2d416919854228fd7a03db5ef
      https://github.com/llvm/llvm-project/commit/10995c77b4766ad2d416919854228fd7a03db5ef
  Author: Joachim Protze <protze at itc.rwth-aachen.de>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

  Changed paths:
    M openmp/runtime/src/kmp_tasking.cpp
    M openmp/runtime/test/ompt/callback.h
    A openmp/runtime/test/ompt/tasks/task_early_fulfill.c
    A openmp/runtime/test/ompt/tasks/task_late_fulfill.c

  Log Message:
  -----------
  [OpenMP][OMPT] Fix and add event callbacks for detached tasks

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, which only work with clang-11+

Reviewed By: hbae

Differential revision: https://reviews.llvm.org/D80843




More information about the All-commits mailing list