Copy static device variable/array to host : CUDA 4.0

Hi,

In CUDA 4.0, when copying static device variable/array to host, is it possible to use,

cudaMemcpy(…, cudaMemcpyDeviceToHost);

If not possible, what is the correct CUDA function to do that?

I have seen a statement “cudaMemcpyFromSymbol is the canonical way to copy from any statically defined variable in device memory.”. Is this correct?

Thank you.