[Openmp-commits] [PATCH] D95274: [libomptarget][cuda] Call v2 functions explicitly
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jan 22 16:29:29 PST 2021
JonChesterfield created this revision.
JonChesterfield added reviewers: jdoerfert, tra, tianshilei1992, grokos, ABataev.
Herald added a subscriber: yaxunl.
JonChesterfield requested review of this revision.
Herald added a project: OpenMP.
Herald added a subscriber: openmp-commits.
[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 <https://reviews.llvm.org/D95104>, D95155 <https://reviews.llvm.org/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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95274
Files:
openmp/libomptarget/plugins/cuda/dynamic_cuda/cuda.h
openmp/libomptarget/plugins/cuda/src/rtl.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95274.318679.patch
Type: text/x-patch
Size: 8801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210123/c00aee0f/attachment.bin>
More information about the Openmp-commits
mailing list