I have several files for an app in image processing. As the number of rows and colums for an image does not change while doing some image processing algorithm I was trying t
If your symbol is declared like this:
__constant__ int c_rows;
then the correct call to cudaMemcpyToSymbol is just
cudaMemcpyToSymbol
int rows = 5; cudaMemcpyToSymbol(c_rows, &rows, sizeof(int)));