Problems with cudaMemcpy3D
Hi,

I'm having a hard time getting cudaMemcpy3D and cudaMemcpy3DPeer to do what I want to do. The function always fails with "error 11 invalid argument". Rather than showing you my many many versions of the code to try to get it running I'm asking for a working example somewhere that does not involve cuda arrays but simple (pitched) pointers. I could not find anything in the SDK or on the web, they always use cudaMalloc3DArray (for textrues) instead of cudaMalloc3D. I want to have regular (pitched) memory, not a cuda array and do 2D/3D communication using the DMA engines directly instead of writing a kernel to do it.

Thanks in advance!
seb
Hi,



I'm having a hard time getting cudaMemcpy3D and cudaMemcpy3DPeer to do what I want to do. The function always fails with "error 11 invalid argument". Rather than showing you my many many versions of the code to try to get it running I'm asking for a working example somewhere that does not involve cuda arrays but simple (pitched) pointers. I could not find anything in the SDK or on the web, they always use cudaMalloc3DArray (for textrues) instead of cudaMalloc3D. I want to have regular (pitched) memory, not a cuda array and do 2D/3D communication using the DMA engines directly instead of writing a kernel to do it.



Thanks in advance!

seb

#1
Posted 02/22/2012 07:25 PM   
I had the same error with cudamemcpy3d. How do you configure the CUDA extent? I found that the width is not set in bytes but in element?

Let us know if it's your case.

Regards.
I had the same error with cudamemcpy3d. How do you configure the CUDA extent? I found that the width is not set in bytes but in element?



Let us know if it's your case.



Regards.

#2
Posted 02/22/2012 08:56 PM   
Thanks for you reply pQB.

I don't think this is it. The documentation states that width of extent must be specified in bytes. This makes sense, since the entire cuda API (except texture stuff) is type agnostic.
Do you have cudaMemcpy3D working in your code without cuda arrays? Could you post your configuration and call to cudaMemcpy3D? Or somebody else? There must be someone who has this function working in his code.

Thanks in advance!
seb
Thanks for you reply pQB.



I don't think this is it. The documentation states that width of extent must be specified in bytes. This makes sense, since the entire cuda API (except texture stuff) is type agnostic.

Do you have cudaMemcpy3D working in your code without cuda arrays? Could you post your configuration and call to cudaMemcpy3D? Or somebody else? There must be someone who has this function working in his code.



Thanks in advance!

seb

#3
Posted 02/23/2012 12:36 PM   
I opened a bug with the Nvidia CUDA team. Will report any results that come from this.
I opened a bug with the Nvidia CUDA team. Will report any results that come from this.

#4
Posted 03/01/2012 01:11 PM   
Scroll To Top