如何使用visual studio 2008调试到CUDA内核代码? [英] How to debug into CUDA kernel code using visual studio 2008?

查看:298
本文介绍了如何使用visual studio 2008调试到CUDA内核代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,
我使用Visual Studio 2008,使用CUDA 3.2。我尝试使用此签名调试成一个函数:

Hey, I am using Visual Studio 2008, with CUDA 3.2. I am trying to debug into a function with this signature:

 MatrixMultiplication_Kernel<<<dimGrid, dimBlock>>>(Md, Nd, Pd, Width);

我可以进入函数,但是当我进入函数时,超过任何代码,并告诉我没有源可用。

I can step into the function, however when I get into the function it doesn't let me step over any of the code and tells me that no source is available. Anybody knows how to debug into this properly?

谢谢!

推荐答案

p> 更新: Parallel Nsight现已免费,支持在系统中只有一个GPU进行调试。

Update: Parallel Nsight is now free and supports debugging with only one GPU in your system.

在Visual Studio中调试设备代码,您需要 Parallel Nsight

To debug device code within Visual Studio you will need Parallel Nsight. The standard version is free and offers the debugging you require as well as device code profiling.

如果您要在单台计算机上进行调试,则可以使用 你将需要两个GPU(因为GPU运行的代码将停止,当它到达一个断点,因此你的显示也会阻塞)。他们不需要是高端的GPU,但从G92起,任何东西(包括列出的大多数Fermi GPU 此处)。

If you want to debug on a single machine then you will need two GPUs (since the GPU running the code will be stopped when it hits a breakpoint, and hence your display would block as well). They don't need to be high-end GPUs though, anything from G92 onwards will do (including most Fermi GPUs as listed here).

这篇关于如何使用visual studio 2008调试到CUDA内核代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆