[libomptarget][cuda] Gracefully handle missing cuda library
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Tue, 26 Jan 2021 20:43:06 +0000 (20:43 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Tue, 26 Jan 2021 20:43:07 +0000 (20:43 +0000)
commit7baff00eeedb0d9bac5e7cd0c5e4189a6cc6101d
tree9f0a2d9cf770d14f857b4651253a79a1cd7ae4b6
parentfdeffd6fb0c1a824137c502e2b1c182aded17325
[libomptarget][cuda] Gracefully handle missing cuda library

[libomptarget][cuda] Gracefully handle missing cuda library

If using dynamic cuda, and it failed to load, it is not safe to call
cuGetErrorString.

Reviewed By: jdoerfert

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