Device2Device transfer Global2Constant possibility Question on transfer between constant and global

Hello to everyone,

I hope somebody can answer my question and is regarding device2device memory transfers. I searched in the 3.0 guide and couldn’t find anything.

Is it possible to get global memory to go through the constant cache since it’s all global, but without transferring to the host and back?

If so, how can I do it?

I need the result of one kernel to be put on constant memory for the next kernel.

Thanks in advance,


cudaMemcpyToSymbol() takes a fifth argument (after the offset parameter) describing the kind of memcpy. Specify cudaMemcpyDeviceToDevice here. Do not forget to specify the offset parameter, or the fifth argument will be mistaken as the offset (which has a default value of 0). This has been a frequent cause of trouble ;)