[OpenMP][libomptarget] Improve device info printing in NextGen plugins
authorKevin Sala <kevin.sala@bsc.es>
Wed, 12 Apr 2023 20:02:23 +0000 (22:02 +0200)
committerKevin Sala <kevin.sala@bsc.es>
Tue, 9 May 2023 13:34:15 +0000 (15:34 +0200)
commit843f496b71aece4097bcc780c3bb47bd0874844a
tree8d5b36d905ad454d648d0a6880ed01ca28d4fdc8
parent36d8b449cfc9850513bb2ed6c07b5b8cc9f1ae3a
[OpenMP][libomptarget] Improve device info printing in NextGen plugins

This patch improves the device info printing in the NextGen plugins. The device
info properties are composed of keys, values and units (if necessary). These
properties are pushed into a queue by each vendor-specifc plugin, and later,
these properties are printed processed and printed by the common Plugin
Interface. The printing format is common across the different plugins.

Differential Revision: https://reviews.llvm.org/D148178
openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.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/plugins-nextgen/generic-elf-64bit/src/rtl.cpp