pytorch-parallel icon indicating copy to clipboard operation
pytorch-parallel copied to clipboard

How to debug CUDA codes?

Open qiulesun opened this issue 5 years ago • 2 comments

I use the python script to call CUDA codes. Could you provide any suggestions for debugging CUDA codes?

qiulesun avatar Dec 24 '19 07:12 qiulesun

It annoys me a lot, too. I will push some cases about debugging, maybe days later. As for other suggestions, if u can do a hard job, unit tests help a lot.

tczhangzhi avatar Dec 25 '19 11:12 tczhangzhi

Thanks for your reply. I also have noticed that you delivered the message in your zhihu article (https://zhuanlan.zhihu.com/p/48463543) you will provide ideas on how to debug cuda codes. I am looking forward to your cases deeply.

qiulesun avatar Dec 25 '19 12:12 qiulesun