简体   繁体   English

使用Microsoft vs2010进行CUDA调试

[英]CUDA debugging with microsoft vs2010

When I debugging cuda(v 5.0) code: 当我调试cuda(v 5.0)代码时:

For example add two vectors I can't see debugging details such as block idx,warp index 例如添加两个向量,我看不到调试详细信息,例如块idx,warp索引

shown in nvidia nsight site ), i can see only locals, call stack,... that shown in c programs. nvidia nsight网站中显示 ),我只能看到本地人,调用堆栈,...在c程序中显示的内容。

The problem is that you have made a breakpoint in the host code but you have no breakpoint in the device code. 问题在于您已经在主机代码中创建了一个断点,但是在设备代码中没有了断点。
When debugging with the regular VS debugger, the debugger will hit breakpoints in the host code but not in the device code. 使用常规VS调试器进行调试时,调试器将在主机代码中而不是在设备代码中达到断点。
When debugging with the CUDA debugger, the debugger will hit breakpoints in the device code but not in the host code. 使用CUDA调试器进行调试时,调试器将在设备代码中而不是在主机代码中命中断点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM