.. and register them with CUDA runtime.
This is needed for commonly used cudaMemcpy*() APIs that use address of host-side shadow to access their counterparts on device side.
Fixes PR26340.
Paths
| Differential D17779
[CUDA] Emit host-side 'shadows' for device-side global variables ClosedPublic Authored by tra on Mar 1 2016, 12:55 PM.
Details Summary .. and register them with CUDA runtime. This is needed for commonly used cudaMemcpy*() APIs that use address of host-side shadow to access their counterparts on device side. Fixes PR26340.
Diff Detail
Event Timelinetra added a child revision: D17780: [CUDA] Do not generate unnecessary runtime init code..Mar 1 2016, 1:29 PM
This revision is now accepted and ready to land.Mar 1 2016, 5:09 PM Closed by commit rL262498: [CUDA] Emit host-side 'shadows' for device-side global variables (authored by tra). · Explain WhyMar 2 2016, 10:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 49645 cfe/trunk/lib/CodeGen/CGCUDANV.cpp
cfe/trunk/lib/CodeGen/CGCUDARuntime.h
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
cfe/trunk/test/CodeGenCUDA/device-stub.cu
cfe/trunk/test/CodeGenCUDA/filter-decl.cu
|