[PATCH] D17779: [CUDA] Emit host-side 'shadows' for device-side global variables
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 1 12:55:14 PST 2016
tra created this revision.
tra added reviewers: jlebar, jingyue.
tra added a subscriber: cfe-commits.
.. 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.
http://reviews.llvm.org/D17779
Files:
lib/CodeGen/CGCUDANV.cpp
lib/CodeGen/CGCUDARuntime.h
lib/CodeGen/CodeGenModule.cpp
test/CodeGenCUDA/device-stub.cu
test/CodeGenCUDA/filter-decl.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17779.49530.patch
Type: text/x-patch
Size: 14708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160301/7aadb05f/attachment.bin>
More information about the cfe-commits
mailing list