[all-commits] [llvm/llvm-project] 30c0d5: [OPENMP][AMDGCN] Improvements to print_kernel_trac...

ronlieb via All-commits all-commits at lists.llvm.org
Fri Feb 19 03:48:33 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30c0d5b4c3f89efef8f79c47fd892d06432d87b1
      https://github.com/llvm/llvm-project/commit/30c0d5b4c3f89efef8f79c47fd892d06432d87b1
  Author: Ron Lieberman <Ron.Lieberman at amd.com>
  Date:   2021-02-19 (Fri, 19 Feb 2021)

  Changed paths:
    A openmp/libomptarget/plugins/amdgpu/src/print_tracing.h
    M openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list