[all-commits] [llvm/llvm-project] 7a5a74: [OpenMP] Always emit debug messages that indicate ...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Aug 26 16:56:25 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7a5a74ea9675008589593e0f811c9b60fc962d0b
https://github.com/llvm/llvm-project/commit/7a5a74ea9675008589593e0f811c9b60fc962d0b
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2020-08-26 (Wed, 26 Aug 2020)
Changed paths:
M openmp/libomptarget/src/api.cpp
M openmp/libomptarget/src/device.cpp
M openmp/libomptarget/src/interface.cpp
M openmp/libomptarget/src/omptarget.cpp
M openmp/libomptarget/src/private.h
M openmp/libomptarget/src/rtl.cpp
M openmp/libomptarget/test/mapping/alloc_fail.c
M openmp/libomptarget/test/mapping/present/target.c
M openmp/libomptarget/test/mapping/present/target_array_extension.c
M openmp/libomptarget/test/mapping/present/target_data_array_extension.c
M openmp/libomptarget/test/mapping/present/target_enter_data.c
M openmp/libomptarget/test/mapping/present/zero_length_array_section.c
Log Message:
-----------
[OpenMP] Always emit debug messages that indicate offloading failure
Summary:
This patch changes the libomptarget runtime to always emit debug messages that
occur before offloading failure. The goal is to provide users with information
about why their application failed in the target region rather than a single
failure message. This is only done in regions that precede offloading failure
so this should not impact runtime performance. if the debug environment
variable is set then the message is forwarded to the debug output as usual.
A new environment variable was added for future use but does nothing in this
current patch. LIBOMPTARGET_INFO will be used to report runtime information to
the user if requrested, such as grid size, SPMD usage, or data mapping. It will
take an integer indicating the level of information verbosity and a value of 0
will disable it.
Reviewers: jdoerfort
Subscribers: guansong sstefan1 yaxunl ye-luo
Tags: #OpenMP
Differential Revision: https://reviews.llvm.org/D86483
More information about the All-commits
mailing list