Is there a problem in this example code from the CUDA C Programming Guide?
__device__ float devData;
float value = 3.14f;
cudaMemcpyToSymbol(devData, &value, sizeof(float));
I can’t understand how it could write to devData without having the address of devData
Actually it seems that cudaMemcpyToSymbol has another signature.
http://cudpp.googlecode.com/svn-history/r152/trunk/common/inc/dynlink/cuda_runtime_dynlink.h
This one would match your case.