[Openmp-commits] [PATCH] D46210: [OpenMP] Use LIBOMPDEVICE_DEBUG env var to control debug messages on the device side

Guansong Zhang via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Apr 27 14:22:06 PDT 2018


guansong created this revision.
guansong added a reviewer: grokos.
guansong added a project: OpenMP.

Enable the device side debug messages at compile time, use env var to control at runtime.

To achieve this, an environment data block is passed to the device lib when it is loaded.

By default, the message is off, to enable it, a user need to set LIBOMPDEVICE_DEBUG=1.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D46210

Files:
  libomptarget/deviceRTLs/nvptx/src/debug.h
  libomptarget/deviceRTLs/nvptx/src/omp_data.cu
  libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
  libomptarget/plugins/cuda/src/rtl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46210.144396.patch
Type: text/x-patch
Size: 5324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180427/55dcf232/attachment.bin>


More information about the Openmp-commits mailing list