Using emulation mode

When I use an emulation mode the kernels do not entered. I inserted printf inside the kernel but there is nothing on the screen. It seems to me that calls of the kernel are ignored when I use emulation mode.
How can i debug my kernels?

using printfs inside the kernel in emulation mode works fine for me. if nothing is printed, it means that your kernel is not being called. you should check the grid and block dimensions you are giving when doing the kernel call.

good luck with your debugging !

Thank you for answer!

I think that I find the solution. I don’t know why printf does not work or kernel isn’t call. But I also think that my program is not suitable for GPU. There are some ways to simplify the kernels and it can only increase the perfomance. And of course simplify the debugging.