copy a portion of the device array

Jun 19, 2014 at 9:44 PM
Hi,

How do I copy a portion of a device array? I need only the first "numb" of elements from the device to the host.
Coordinator
Jun 19, 2014 at 10:38 PM
Use one of the many overloads, e.g.
devvar.CopyToHost(T[] dest, SizeT offsetSrc, SizeT offsetDest, SizeT sizeInBytes)
Michael
Jun 19, 2014 at 10:48 PM
Very well I like this function. So far we are enjoying working with ManagedCuda in our project with my students.