The program which used CUDA for computing in GPU reported error about memory:

Console

For common C++ program, we use gdb for debugging. For CUDA program, we should use cuda-gdb. Make sure to compile CUDA code with -g flag and then run:

Console

After a while, we could see the exact memory corrupt position of the code:

Console