[all-commits] [llvm/llvm-project] 74f917: [OpenMP] Use function tracing RAII for runtime fun...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Oct 29 11:57:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74f91741b66b9327fdbae6411286672ec088c3a3
      https://github.com/llvm/llvm-project/commit/74f91741b66b9327fdbae6411286672ec088c3a3
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-10-29 (Fri, 29 Oct 2021)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/include/Debug.h
    M openmp/libomptarget/DeviceRTL/src/Debug.cpp
    M openmp/libomptarget/DeviceRTL/src/Kernel.cpp
    M openmp/libomptarget/DeviceRTL/src/Mapping.cpp
    M openmp/libomptarget/DeviceRTL/src/Misc.cpp
    M openmp/libomptarget/DeviceRTL/src/Parallelism.cpp
    M openmp/libomptarget/DeviceRTL/src/Reduction.cpp
    M openmp/libomptarget/DeviceRTL/src/State.cpp
    M openmp/libomptarget/DeviceRTL/src/Synchronization.cpp
    M openmp/libomptarget/DeviceRTL/src/Tasking.cpp
    M openmp/libomptarget/DeviceRTL/src/Utils.cpp
    M openmp/libomptarget/DeviceRTL/src/Workshare.cpp

  Log Message:
  -----------
  [OpenMP] Use function tracing RAII for runtime functions.

This patch adds support for using function tracing features to track the
executino of runtime functions in the device runtime library. This is
enabled by first compiling the new runtime with
`-fopenmp-target-debug=3` and running with
`LIBOMPTARGET_DEVICE_RTL_DEBUG=3`. The output only tracks team 0 and
thread 0 so there isn't much output when using a generic region.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D112002


  Commit: 6dd791bca858c0d5241689c9eefd9313fe823ee3
      https://github.com/llvm/llvm-project/commit/6dd791bca858c0d5241689c9eefd9313fe823ee3
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-10-29 (Fri, 29 Oct 2021)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/include/Configuration.h
    M openmp/libomptarget/DeviceRTL/src/State.cpp

  Log Message:
  -----------
  [OpenMP] Check output of malloc in the device for debug

A common problem is the device running out of global heap memory and
crashing due to a nullptr dereference when using the data sharing stack.
This explicitly checks that a nullptr was not returned by malloc when
debugging field 1 is enabled.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D112005


  Commit: 35f42340a279b33ff22cbe65a116efc692975bc4
      https://github.com/llvm/llvm-project/commit/35f42340a279b33ff22cbe65a116efc692975bc4
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-10-29 (Fri, 29 Oct 2021)

  Changed paths:
    M openmp/docs/design/Runtimes.rst

  Log Message:
  -----------
  [OpenMP][Docs] Add documentation for device RTL debugging

Add documentation for the debugging features in the OpenMP device
runtime library.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D112010


Compare: https://github.com/llvm/llvm-project/compare/5dd9e019ddb4...35f42340a279


More information about the All-commits mailing list