I have the following stuff in the .cu file:
device constant int target_hash;//also tried without device
device constant char charset_c;
When I try to do any of these:
cudaMemcpyToSymbol(“target_hash”, hash_i, 44, 0, cudaMemcpyHostToDevice);//Also tried without cudaMemcpyHostToDevice
cudaMemcpyToSymbol(target_hash, hash_i, 44, 0, cudaMemcpyHostToDevice);
cudaMemcpyToSymbol(“charset_c”, charset, charset_len+1);
cudaMemcpyToSymbol(charset_c, charset, charset_len+1);//charset_len<256
I am getting “invalid device symbol”.
That is pretty frustrating, because this code was perfectly working in pre-2.0 CUDA SDK.
My old binaries are still fine, but now I am getting this. Not sure what to do with it :-(