Of course, you could use cudaMemcpy to copy the scanned memory of the device, but it would be more common to use cudaMemcpy2D . An example of a copied copy from a node to a device will look something like this:
#include "cuda.h"
(note: untested, cavaet emptor and all this .....)
source share