本文介绍了如何在Visual studio或Parallel Nsight中调试CUDA内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在Win7 x64上安装了CUDA 4.1 SDK和Parallel Nsight 2.1。我想调试我的CUDA内核,怎么办?这是可能与一个GPU吗?有一个实用程序Nsight Monitor。我试过它,首先禁用Windows上的超时检测和恢复,并禁用WPF,Nsight监视器告诉我。我在VS中设置断点,运行代码,但没有发生。 Nsight显示器说我连接。所以我可以在VS中调试或者我应该在Parallel Nsight中调试?如何?感谢一百万。I have CUDA 4.1 SDK with Parallel Nsight 2.1 installed on Win7 x64. I want to debug my CUDA kernels, how to do this? Is this possible with one GPU? There is a utility Nsight Monitor. I have tried it, first disabled Timeout Detection and Recovery on Windows, and disable WPF, as Nsight monitor told me. I set a breakpoint in VS, run the code but nothing happend. Nsight monitor said i am connected. So can i debug in VS or shall i debug in Parallel Nsight? How to? Thanks a million.推荐答案如果你只有一个GPU,那么你不能用Parallel Nsight 2.1调试,因为停止GPU停止显示(Nsight停止你这样做)。使用Parallel Nsight 2.2(发布候选项现在可用If you only have one GPU then you cannot do debugging with Parallel Nsight 2.1 since stopping the GPU stops the display (Nsight stops you doing this). With Parallel Nsight 2.2 (release candidate now available) you can now do local debugging with a single GPU.所以你在正确的轨道(禁用TDR / WPF等),但你需要更新到Parallel Nsight 2.2以使用单个GPU进行调试。So you're on the right track (disabling TDR/WPF etc.) but you'll need to update to Parallel Nsight 2.2 to debug with a single GPU. 这篇关于如何在Visual studio或Parallel Nsight中调试CUDA内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-13 06:28