kunzmi / managedCuda

ManagedCUDA aims an easy integration of NVidia's CUDA in .net applications written in C#, Visual Basic or any other .net language.
Other
440 stars 79 forks source link

Pageable host memory aysnchrounous copy to Device #92

Closed chenw11 closed 3 years ago

chenw11 commented 3 years ago

I want to set a copy action from pageable host memory to device memory into a Cuda Stream. But the CopyToDevice() does not have a overload method for Stream parameter? Although AsyncCopyToDevice() has parameter input support for cuda Stream, but it is intended for copy from device to device.

chenw11 commented 3 years ago

Look like we can only use PageLocked memory to do sync copy from host to device.

kunzmi commented 3 years ago

The (async) copy methods for pageable host memory are provided in the CudaPageLockedHostMemory class.