It seems that printf doesn\'t work inside the Kernel of a cuda code
printf
#include \"Common.h\" #include #include __dev
You need to use cuPrintf, as in this example. Note that printf is a pretty limited way of debugging, the Nsight or Nsight eclipse edition IDEs are much nicer.