[GPUJIT] Switch from Runtime API calls for managed memory to Driver API calls.
commit3f65575965028542854f0bdad7bddbdb9014ef13
authorSiddharth Bhat <siddu.druid@gmail.com>
Sun, 20 Aug 2017 13:38:04 +0000 (20 13:38 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Sun, 20 Aug 2017 13:38:04 +0000 (20 13:38 +0000)
treed8f45fc27501b9dd0ec1fc5fce6862e84c6902de
parent26fca0a4fb5090cf75dfa5842ab1cecf5b8afae5
[GPUJIT] Switch from Runtime API calls for managed memory to Driver API calls.

We now load the function pointer for `cuMemAllocManaged` dynamically, so
it should be possible to compile `GPUJIT` on non-CUDA systems again.

It should now be possible to link on non-cuda systems again.

Thanks to Philipp Schaad for noticing this inconsitency.

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

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@311289 91177308-0d34-0410-b5e6-96231b3b80d8
tools/GPURuntime/GPUJIT.c