aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2019-08-05 19:12:10 +0000
committerMichael Kruse <llvm@meinersbur.de>2019-08-05 19:12:10 +0000
commit78769ec403873ba243a5131150851f5ffaec6e9d (patch)
treeeaff4de369b7eb4713f5c687d4ab3224e7a90c8a /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent8820b122b3ec42e4ff7d7606c1aa6af1d5e40455 (diff)
downloadllvm-78769ec403873ba243a5131150851f5ffaec6e9d.zip
llvm-78769ec403873ba243a5131150851f5ffaec6e9d.tar.gz
llvm-78769ec403873ba243a5131150851f5ffaec6e9d.tar.bz2
[libomptarget] Harmonize emitting CUDA errors and general debug messages.
Ensures that CUDA fail reasons (such as "No CUDA-capable device detected") are printed together with libomptarget's debug message (e.g. "Error when setting CUDA context"). Previously, the former was printed only in CMAKE_BUILD_TYPE=Debug builds while the latter was enabled by LIBOMPTARGET_ENABLE_DEBUG. With this change, also only call cuGetErrorString when the error will be printed. Suggested-by: Ye Luo <xw111luoye@gmail.com> Differential Revision: https://reviews.llvm.org/D65687 llvm-svn: 367910
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions