printf inside CUDA __global__ function

后端 未结 4 649
你的背包
你的背包 2020-12-29 21:46

I am currently writing a matrix multiplication on a GPU and would like to debug my code, but since I can not use printf inside a device function, is there something else I c

4条回答
  •  半阙折子戏
    2020-12-29 22:08

    See "Formatted output" (currently B.17) section of CUDA C Programming Guide.

    http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html

提交回复
热议问题