- We use this in COSMO to use the unified memory feature of the newer
CUDA APIs (>= 6)
- This is a hack, so please revert this when 2018 rolls in.
Paths
| Differential D35991
[Polly] [HACK] [WIP] Add functionality to GPUJIT to track unified memory. ClosedPublic Authored by bollu on Jul 28 2017, 5:25 AM.
Details
Summary
CUDA APIs (>= 6)
Diff Detail
Event TimelineComment Actions Clearly, this entire patch is a hack. I'd like to know how to add tests for this, and how to ensure that this gets reverted at some point in the future :) Comment Actions Hi Siddharth, I think it is OK to upstream this code, assuming you write and document it in a generic way and explain how it is used.
bollu marked an inline comment as done. Comment Actions
This revision is now accepted and ready to land.Aug 2 2017, 3:54 AM Closed by commit rL309808: [GPUJIT] Add GPUJIT APIs for allocating and freeing managed memory. (authored by bollu). · Explain WhyAug 2 2017, 5:24 AM This revision was automatically updated to reflect the committed changes. Comment Actions This breaks my Julia build. How are the cudaFree and cudaMallocManaged functions resolved ? Can you add a patch to link GPURuntime to cudart ?
Revision Contents
Diff 109314 tools/GPURuntime/GPUJIT.h
tools/GPURuntime/GPUJIT.c
|
Why is this needed. Maybe upstream separately?