This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Add utility header for AMDGPU plugins
ClosedPublic

Authored by kevinsala on Dec 11 2022, 10:20 AM.

Details

Summary

This patch prepares the PluginInterface for the new AMDGPU NextGen plugin. The original and the NextGen plugin will share some structures and functionalities. We use this header for defining them and avoiding code duplication.

Diff Detail

Event Timeline

kevinsala created this revision.Dec 11 2022, 10:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 11 2022, 10:20 AM
kevinsala requested review of this revision.Dec 11 2022, 10:20 AM
tianshilei1992 added inline comments.Dec 11 2022, 3:08 PM
openmp/libomptarget/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h
29

C++ style

openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
100

Not related to this patch, but I think we should really set a CMake variable for the header and use the variable instead of relative path.

tschuett added inline comments.
openmp/libomptarget/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h
22

nested namespaces?

kevinsala added inline comments.Dec 14 2022, 3:28 PM
openmp/libomptarget/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h
22

Could you add more context to the comment please? Are nested namespaces a problem? Thanks

kevinsala updated this revision to Diff 483017.Dec 14 2022, 3:44 PM

Using C++ style for struct.

kevinsala marked an inline comment as done.Dec 14 2022, 3:45 PM
jdoerfert accepted this revision.Dec 15 2022, 11:50 AM

LG, we can modify it in-tree. We need to merge the plugin part to modify it w/ more ppl.

This revision is now accepted and ready to land.Dec 15 2022, 11:50 AM