printf inside CUDA __global__ function

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

    • cuprintf
    • try Nexus http://developer.nvidia.com/object/nexus.html

    by the way..

    • use shared memory
    • multiply outside of the loop
    • Look at this: http://www.seas.upenn.edu/~cis665/LECTURES/Lecture11.ppt

提交回复
热议问题