[Openmp-commits] [PATCH] D112805: [OpenMP][OMPT] Transparently support emi and noemi callbacks in ompt-multiplex.h

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 29 04:53:37 PDT 2021


protze.joachim created this revision.
protze.joachim added a reviewer: hbae.
protze.joachim added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
protze.joachim requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

OpenMP 5.1 added extended versions of existing target related
event callbacks (emi). These callbacks provide all information of
the old callbacks (noemi) and add more information. Therefore, 
noemi callbacks can be transparently wrapped into emi callbacks.
The OpenMP spec allows to only register the emi or noemi 
version of each callback. Since a tool down in the multiplexer
recursion might register the emi callback, we delay the 
transparent wrapping for each individual tool.

This patch adds the wrappers and the code to transparently
register emi or noemi callbacks.


https://reviews.llvm.org/D112805

Files:
  openmp/tools/multiplex/ompt-multiplex.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112805.383298.patch
Type: text/x-patch
Size: 11117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211029/4976e210/attachment.bin>


More information about the Openmp-commits mailing list