[libomptarget] Add support for target allocators to dynamic cuda RTL
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 10 May 2021 14:27:49 +0000 (15:27 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 10 May 2021 14:27:50 +0000 (15:27 +0100)
commit6da348569cd20632d8ee2213fbab59850e133eb0
treedb9850063f65f275ea90e78110745b74780129be
parent0c41f77857fccf2a20d48ca96ce61d3c4d1634e6
[libomptarget] Add support for target allocators to dynamic cuda RTL

[libomptarget] Add support for target allocators to dynamic cuda RTL

Follow on to D102000 which introduced new calls into libcuda. This patch adds
the corresponding entry points to dynamic_cuda, fixing the build for systems
that do not have the cuda toolkit installed.

Function types and enum from https://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MEM.html

Reviewed By: pdhaliwal

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