[libomptarget][cuda] Handle missing _v2 symbols gracefully
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 27 Jan 2021 00:22:28 +0000 (00:22 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 27 Jan 2021 00:22:29 +0000 (00:22 +0000)
commit653655040f3e89f7725ce6961d797d4ac918708b
tree13a29592da6e08c4dc71e71728f7e94aae7643a4
parent65e2fa50604c01cf1ed3b8cd05253dc447bc107b
[libomptarget][cuda] Handle missing _v2 symbols gracefully

[libomptarget][cuda] Handle missing _v2 symbols gracefully

Follow on from D95367. Dlsym the _v2 symbols if present, otherwise use the
unsuffixed version. Builds a hashtable for the check, can revise for zero
heap allocations later if necessary.

Reviewed By: jdoerfert

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