I am debugging a cuda program and got the following warning:
warning: Cuda API error detected: cudaMemcpy returned (0xb)
warning: Cuda API error detected: cudaMemcpy returned (0xb)
warning: Cuda API error detected: cudaGetLastError returned (0xb)
Error in kernel
GPUassert: invalid argument
when I type "where" in cuda-gdb, it says "no stack."
(cuda-gdb) where
No stack.
How should find where my program crashed ?
Find the answer here : http://on-demand.gputechconf.com/gtc/2012/presentations/S0027A-Monday-Debugging-Experience-CUDA.pdf @ page 27.
You need to first:
Then when error happens, it will stop: