printf inside CUDA __global__ function

后端 未结 4 658
你的背包
你的背包 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:25

    CUDA now supports printfs directly in the kernel. For formal description see Appendix B.16 of the CUDA C Programming Guide.

提交回复
热议问题