Can I use ‘printf’ or something in OpenACC kernel region?
I faced some trouble with my OpenACC code.
It is making wrong result, but I don’t know how to debug OpenACC kernel region.
I have to debug the code, so I want to show variable values when the kernel is running on GPU.
I tried cuda-gdb, Nsight(from CUDA toolkit), but failed to show values.
How can I show and debug OpenACC code?