[OPENMP][AMDGCN] Improvements to print_kernel_trace (bit mask)
authorRon Lieberman <Ron.Lieberman@amd.com>
Thu, 18 Feb 2021 22:10:40 +0000 (17:10 -0500)
committerRon Lieberman <Ron.Lieberman@amd.com>
Fri, 19 Feb 2021 11:47:22 +0000 (06:47 -0500)
commit30c0d5b4c3f89efef8f79c47fd892d06432d87b1
tree4f23d3e00b42cb9fc7d688de3105ab7f1a214312
parent8181dcd30feeb7258685cafc35e0b01c894c6f3b
[OPENMP][AMDGCN] Improvements to print_kernel_trace (bit mask)

allow bit masking to select various trace features.
  bit 0 => Launch tracing           (stderr)
  bit 1 => timing of runtime        (stdout)
  bit 2 => detailed launch tracing  (stderr)
  bit 3 => timing goes to stdout instead of stderr

  example: LIBOMPTARGET_KERNEL_TRACE=7     does it all
           LIBOMPTARGET_KERNEL_TRACE=5     Launch + details
           LIBOMPTARGET_KERNEL_TRACE=2     timings + launch to stderr
           LIBOMPTARGET_KERNEL_TRACE=10    timings + launch to stdout

Differential Revision: https://reviews.llvm.org/D96998
openmp/libomptarget/plugins/amdgpu/src/print_tracing.h [new file with mode: 0644]
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp