hanchenye-llvm-project/polly/tools/GPURuntime
Siddharth Bhat f23bb4a8ba [GPUJIT] Add GPUJIT APIs for allocating and freeing managed memory.
We introduce `polly_mallocManaged` and `polly_freeManaged` as
proxies for `cudaMallocManaged` / `cudaFree`. This is currently not
used by Polly. It is auxiliary code that is used in `COSMO`.

This is useful because `polly_mallocManaged` matches the signature of `malloc`,
while `cudaMallocManaged` does not. We introduce `polly_freeManaged` for
symmetry.

We use this in COSMO to use the unified memory feature of the newer
CUDA APIs (>= 6).

Differential Revision: https://reviews.llvm.org/D35991

llvm-svn: 309808
2017-08-02 12:23:22 +00:00
..
CMakeLists.txt GPURuntime: ensure compilation with C99 2016-09-11 07:32:50 +00:00
GPUJIT.c [GPUJIT] Add GPUJIT APIs for allocating and freeing managed memory. 2017-08-02 12:23:22 +00:00
GPUJIT.h [GPUJIT] Add GPUJIT APIs for allocating and freeing managed memory. 2017-08-02 12:23:22 +00:00
LICENSE.TXT Update copyright year to 2016. 2016-03-30 22:41:38 +00:00