Search code examples
cudagpunsight

Cuda error 30 disappears when I debug in Nsight


VS 2010k and Nsight v3

I am making mods to some cuda modules; when I run in Debug mode in VS this Host code:

result = cuLaunchKernel ( cuFunction, dimGrid.x, dimGrid.y, dimGrid.z, dimBlock.x, dimBlock.y, dimBlock.z, shared, stream, argsG, 0);
cudaDeviceSynchronize();
err = cudaGetLastError();

i get value of result is zero but err is 30 [or Unknown] on the first time thru this part of the code and every time thru.

So I fired up NSight thinking to trap the problem. Processed my whole input file without any errors. Turned on memory check in Nsight and reran. again processed whole file without a complaint.

So: Under Host debug every launch of this code results in error 30 but running under control of Nsight and no errors.

Anyone have an explanation ?

thanks


Solution

  • Solved thr program issue: there was a bad global memory address being calculated due to bug. why Nsight did not catch the error but sailed right on thru -- even with memory check turned on i do not understand.