[OpenMP] Always print error messages in libomptarget CUDA plugin
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 7 Jan 2021 21:43:01 +0000 (16:43 -0500)
committerHuber, Joseph <huberjn@ornl.gov>
Thu, 7 Jan 2021 22:47:32 +0000 (17:47 -0500)
commit2ce16810f28379b0a56f7036895a04e18d6b4506
tree575ba65dfe1511896735b138d01316daa169e13e
parentf78d6af7319aa676a0f9f6cbb982f21c96e9aac5
[OpenMP] Always print error messages in libomptarget CUDA plugin

Summary:
Currently error messages from the CUDA plugins are only printed to the user if they have debugging enabled. Change this behaviour to always print the messages that result in offloading failure. This improves the error messages by indidcating what happened when the error occurs in the plugin library, such as a segmentation fault on the device.

Reviewed by: jdoerfert

Differential Revision: https://reviews.llvm.org/D94263
openmp/libomptarget/plugins/cuda/src/rtl.cpp