This is an archive of the discontinued LLVM Phabricator instance.

[openmp] Initialize OMPT in libomptarget
Needs ReviewPublic

Authored by lechenyu on Jul 28 2021, 10:23 AM.

Details

Summary
  1. Add two files, ompt-target.h and ompt-target.cpp, for OMPT-related types, global variables and classes. For each target-related callbacks, there is an associated wrapper class. The wrapper class is used to store parameters for callbacks, and the actual OMPT callbacks are invoked in the constructor/destructor using the predefined interfaces in the runtime.
  2. Initialize the bitmap and other global variables when initializing libomptarget (rtl.cpp).

Diff Detail

Event Timeline

lechenyu created this revision.Jul 28 2021, 10:23 AM
lechenyu requested review of this revision.Jul 28 2021, 10:23 AM
lechenyu updated this revision to Diff 364118.Aug 4 2021, 8:10 AM

Fix format issues

lechenyu updated this revision to Diff 364537.Aug 5 2021, 10:26 AM

Fix format issues.

Drive by

openmp/libomptarget/src/ompt-target.h
1

These files lack license headers. Can someone please add them.

jdenny added a subscriber: jdenny.Sep 29 2021, 8:00 AM