libgpuvm icon indicating copy to clipboard operation
libgpuvm copied to clipboard

one-sided transfer for arrays

Open canonizer opened this issue 14 years ago • 0 comments

sometimes, arrays are used for one-sided communication only, e.g. device -> host or host -> device. As they can be still modified on both sides, however, general way of handling them will require copying in both directions. It is possible, though, to add a flag indicating that arrays are copied one side only:

GPUVM_HOST_TO_DEVICE // copied host -> device GPUVM_DEVICE_TO_HOST // copied device -> host

... gpuvm_link(harr, sz, idev, darr, GPUVM_ON_HOST | GPUVM_HOST_TO_DEVICE);

canonizer avatar Nov 22 '11 14:11 canonizer