20161027
1、fatal error: helper_cuda.h: No such file or directory,
As indicated by your compile options -I../../common/inc, helper_cuda.h is located in $CUDA_HOME/samples/common/inc/.
2、cuda-gdb
$cuda-gdb
(cuda-gdb)set cuda software-preemption on
(cuda-gdb)file a.out