[OpenMP][AMDGPU] More detail in AMDGPU kernel launch info
authorJP Lehr <JanPatrick.Lehr@amd.com>
Tue, 28 Feb 2023 12:15:22 +0000 (07:15 -0500)
committerJP Lehr <JanPatrick.Lehr@amd.com>
Tue, 28 Feb 2023 12:41:48 +0000 (07:41 -0500)
commitb82ac74f7e184319c4f379234915efc8d096f048
tree43656beb7fe229a3c599be331365ca9e143e0f76
parent0ec4cae146e37d97f39818d89e4f2209dcde38ee
[OpenMP][AMDGPU] More detail in AMDGPU kernel launch info

Makes the info that is printed for kernel launches configurable for
different plugins. Adds all machinery to print the detailed launch
info that the current AMD plugin provides and includes e.g. register
spill counts.

The files msgpack.cpp, msgpack.def, and msgpack.h are copied from the old plugin
and are untouched. The contents of UtilitiesHSA.cpp and .h are copied together from
various files from the old plugin. The code was originally written by
Jon Chesterfield. I updated the function and type names visible to the outside, i.e.
in headers, to respect the LLVM conventions.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D144521
openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
openmp/libomptarget/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
openmp/libomptarget/test/offloading/info.c