I am trying to debug my code using cuda-gdb v3.0. When I try to print the value of a variable located within a kernel it says
No symbol “var_name” in current context.
All my code is located within one .cu file and I am compiling with the following line:
$ nvcc -G -g test.cu -o test
The program compiles and runs fine, producing the correct output. Also I am definitely stepping past the declaration and assignment of the variable (though not stepping out of the kernel function) before trying to print its value.
Your help is much appreciated,