Put data into constant mem from host side

Hi all!

The only way to define data as constant is declaring a variable as constant in a global or device function, but is there any way to put data into constant memory from host side?

Thanks in advance!

regards!

We do have cudaMemcpyFromSymbol function. You can use this to copy the constant memory between host and device. Refer the cuda reference manual for more details on this funciton…

Great! Thanks!