[libomptarget] Add support for target memory allocators to cuda RTL
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 6 May 2021 16:42:55 +0000 (12:42 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Fri, 7 May 2021 14:27:02 +0000 (10:27 -0400)
commita15f8589f4e81973b096a5ccc7b5b687c3284ebe
treed2ca30fbfd1ef3f4aa9651a8b4504d9bfd9dbe06
parentf31531a30b124042d8523b7d50053ade82659c5b
[libomptarget] Add support for target memory allocators to cuda RTL

Summary:
The allocator interface added in D97883 allows the RTL to allocate shared and
host-pinned memory from the cuda plugin. This patch adds support for these to
the runtime.

Reviewed By: grokos

Differential Revision: https://reviews.llvm.org/D102000
openmp/libomptarget/plugins/common/MemoryManager/MemoryManager.h
openmp/libomptarget/plugins/cuda/src/rtl.cpp
openmp/libomptarget/test/api/omp_device_managed_memory.c [new file with mode: 0644]
openmp/libomptarget/test/api/omp_host_pinned_memory.c [new file with mode: 0644]