CUDA程序调试cuda_gdb 调试过程 # -g -G 代表为 CPU 和 GPU 代码部分进行调试编译 $ nvcc -g -G -o mul XXX.cu $ cuda-gdb ./mul $ run