I am simply not understanding this. I had working code (in v5) which now breaks in v5.5.
constant double GRAVITY;
hGRAVITY = 9.81;
Then to send to a number of GPUs
for (int i = 0; i< GPU_N; i++)
if( !(cudaMemcpyToSymbol(GRAVITY, &hGRAVITY, sizeof(hGRAVITY)) == cudaSuccess)) printf (“fail \n”);
I have tried a number of versions of this but none seem to transfer the value successfully.
I am probably just being a bit thick but I would appreciate some help.