- ptr3D = cudaMalloc3D() => this also returns a pitch.
- cudaGLMapBufferObject((void **) devPtr, pboId);
To check if my CUDA-GL interop is working, I write something to the devPtr using a cuda kernel and contents are what I expect. I just to need to know how to copy from ptr3D to devPtr since there is this pitch to ptr3D.
Qs:-
What is the memory alignment of devPtr ?
How to copy from ptr3D to devPtr ?