Constant Memory (find 5 errors in code)

I am having some trouble with accessing the constant memory on device (the kernel dies on me). I define in my kernel.cu:

extern constant float DParameters

In the kernel I access the memory with:

DParameters[0]

I copy from host with (main.cu):

CUDA_SAFE_CALL( cudaMemcpyToSymbol(DParameters, GParameters, sizeof ( GParameters ) ) );

where (in main.cu):

float GParameters = { 4 floats }

Now, what is wrong with these statements - since the kernel dies (and the kernel dies due to accessing the constant memory)

Check the manual, cudaMemcpyToSymbol is expecting 5 arguments.

Changing to:

CUDA_SAFE_CALL( cudaMemcpyToSymbol(DParameters, GParameters, sizeof(GParameters), 0, cudaMemcpyHostToDevice) )

did not solve the problem.