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>)
Paths
| Differential D124652
[OpenMP] [OMPT] [amdgpu] [5/8] Implemented device init/fini/load callbacks ClosedPublic Authored by mhalk on Apr 28 2022, 6:44 PM.
Details Summary Added support in the generic plugin to invoke registered callbacks. Depends on D124070 Patch from John Mellor-Crummey <johnmc@rice.edu>
Diff Detail
Event Timelinedhruvachak retitled this revision from [OMPT] [amdgpu] Implemented device init/fini/load callbacks to [OpenMP] [OMPT] [amdgpu] [5/8] Implemented device init/fini/load callbacks.Jun 20 2022, 10:45 PM
Comment Actions Thanks for moving this forward.
Comment Actions When more changes have accumulated I'll update this diff with the changes I replied to with 'Done'.
Comment Actions Read the large comment first, this might also result in changes to other patches. The design should match nextgen and it should be a proper part of it, not some attached afterthought.
Comment Actions Update + rebase to reflect the landing of https://reviews.llvm.org/D124070 @jdoerfert If there are any issues left or further improvements that should be implemented, please let me know.
Comment Actions If there are further requests / improvements I should implement, please let me know. Thank you! Comment Actions Rebase Comment Actions I know you did quite a bit of testing, so I assume this works. Just the one nit.
This revision is now accepted and ready to land.Jul 6 2023, 2:35 AM
Comment Actions Thanks @dhruvachak I'll rebase (esp. w.r.t. the deletion of the legacy plugins), then check the upcoming changes and if I don't see problems: submit here.
Closed by commit rG142faf56f500: [OpenMP] [OMPT] [amdgpu] [5/8] Implemented device init/fini/load callbacks (authored by mhalk). · Explain WhyJul 11 2023, 4:15 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 538422 openmp/libomptarget/CMakeLists.txt
openmp/libomptarget/include/OmptCallback.h
openmp/libomptarget/include/OmptConnector.h
openmp/libomptarget/include/ompt_connector.h
openmp/libomptarget/include/ompt_device_callbacks.h
openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
openmp/libomptarget/plugins-nextgen/common/OMPT/OmptCallback.cpp
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
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
|
?