Page MenuHomePhabricator

[OpenMP][OMPT] Transparently support emi and noemi callbacks in ompt-multiplex.h
Needs ReviewPublic

Authored by protze.joachim on Oct 29 2021, 4:53 AM.



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.

Diff Detail