[libomptarget][cuda] Call v2 functions explicitly
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Sat, 23 Jan 2021 20:33:12 +0000 (20:33 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Sat, 23 Jan 2021 20:33:13 +0000 (20:33 +0000)
commit78b0630b72a9742d62b07cef912b72f1743bfae9
tree8e052ab70a48ea0b2d53b8956b00c3f9ba06768c
parentcd3d80eacebaad076d63df65650b3bd4c5a1b99e
[libomptarget][cuda] Call v2 functions explicitly

[libomptarget][cuda] Call v2 functions explicitly

rtl.cpp calls functions like cuMemFree that are replaced by a macro
in cuda.h with cuMemFree_v2. This patch changes the source to use
the v2 names consistently.

See also D95104, D95155 for the idea. Alternatives are to use a mixture,
e.g. call the macro names and explictly dlopen the _v2 names, or to keep
the current status where the symbols are replaced by macros in both files

Reviewed By: jdoerfert

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