2nd week passing by while I am still trying to migrate my app to latest SDK :-)
Currently I’ve faced strange issue: constant get shifted by 1 byte (i.e. small values are multiplied by 256).
That is totally crazy :-) Any ideas how this might happen?
I set it like this:
int test; test=123; test=234; test=345; test=456; cudaMemcpyToSymbol(target_hash, test, sizeof(int)*4, cudaMemcpyHostToDevice);
//also tried “target_hash”
And read it like this:
ta = target_hash;
ta here is 31488