I’ve got a problem with Memcpy2D.
devPtr = picture in global memory width=512 height=512 srcpitch=8192 (float4-data)
int dstpitch = width*sizeof(float4); void* dst = malloc(dstpitch*height); cudaMemcpy2D ( dst,dstpitch,devPtr,srcpitch,width,height,cudaMemcpyDeviceToHost);
The problem is that only 32pixel of every line is copied.
If I use
instead it works. But Memcpy doesn’t care about pitch and I don’t want to use it.
Am I doing anything wrong here?