[OpenMP] [OMPT] [amdgpu] [5/8] Implemented device init/fini/load callbacks
authorMichael Halkenhaeuser <MichaelGerald.Halkenhauser@amd.com>
Tue, 20 Jun 2023 16:24:05 +0000 (18:24 +0200)
committerMichael Halkenhaeuser <MichaelGerald.Halkenhauser@amd.com>
Tue, 11 Jul 2023 11:13:22 +0000 (07:13 -0400)
commit142faf56f50054adf088e86993121fee381b6c60
treedee7ae153a3770a3ee5661a98afc1730eb9df4c4
parent67a212af4c24426de6e436e9b82590d41faa665c
[OpenMP] [OMPT] [amdgpu] [5/8] Implemented device init/fini/load callbacks

Added support in the generic plugin to invoke registered callbacks.

Depends on D124070

Patch from John Mellor-Crummey <johnmc@rice.edu>
(With contributions from Dhruva Chakrabarti <Dhruva.Chakrabarti@amd.com>)

Differential Revision: https://reviews.llvm.org/D124652
20 files changed:
openmp/libomptarget/CMakeLists.txt
openmp/libomptarget/include/OmptCallback.h [new file with mode: 0644]
openmp/libomptarget/include/OmptConnector.h [moved from openmp/libomptarget/include/ompt_connector.h with 95% similarity]
openmp/libomptarget/include/ompt_device_callbacks.h [deleted file]
openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
openmp/libomptarget/plugins-nextgen/common/OMPT/OmptCallback.cpp
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
openmp/libomptarget/src/OmptCallback.cpp
openmp/libomptarget/src/rtl.cpp
openmp/libomptarget/test/ompt/veccopy.c
openmp/libomptarget/test/ompt/veccopy_disallow_both.c
openmp/libomptarget/test/ompt/veccopy_emi.c
openmp/libomptarget/test/ompt/veccopy_emi_map.c
openmp/libomptarget/test/ompt/veccopy_map.c
openmp/libomptarget/test/ompt/veccopy_no_device_init.c
openmp/libomptarget/test/ompt/veccopy_wrong_return.c
openmp/runtime/src/ompt-event-specific.h
openmp/runtime/src/ompt-general.cpp