I want to copy an array in host memory to constant memory.
I have declared an constant array in host code, and using
cudaMemcopyToSymbol() copy to constant memory.
constant float* d_vector1;
cudaMemcopyToSymbol(d_vector1 , vector1 , data_size);
i got the following error message :
- a function scope variable cannot be declared with.
- identifier"cudaMemcopyToSymbol" is undefined.
I hope one who have had the experiance copy data to constant memory can tell me what to do. thanks. :)