[OpenMP][OMPT] Add 'Initialized' flag
authorMichael Halkenhaeuser <MichaelGerald.Halkenhauser@amd.com>
Thu, 20 Jul 2023 19:41:35 +0000 (15:41 -0400)
committerMichael Halkenhaeuser <MichaelGerald.Halkenhauser@amd.com>
Fri, 21 Jul 2023 12:19:03 +0000 (08:19 -0400)
commitd82eace1c9aa1aea9b57d4acec4a6488646ba26d
treeae005bab80170d61ac9fc13db6cecbd867ba58fd
parent209694ded0e06edfed11d6e67b396112dae21629
[OpenMP][OMPT] Add 'Initialized' flag

We observed some overhead and unnecessary debug output.
This can be alleviated by (re-)introduction of a boolean that indicates, if the
OMPT initialization has been performed.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D155186
openmp/libomptarget/include/OmptCallback.h
openmp/libomptarget/plugins-nextgen/common/OMPT/OmptCallback.cpp
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
openmp/libomptarget/src/OmptCallback.cpp