简体   繁体   English

CUDA Nsight调试焦点,Visual Studio 2012版

[英]CUDA Nsight Debug Focus, Visual Studio 2012 Edition

I'm working on a project that includes working with Visual Studio 2012 and CUDA Development and integrated is the Nsight Debugging environment to it. 我正在从事一个项目,其中包括与Visual Studio 2012和CUDA Development一起使用,并且集成了Nsight调试环境。 I can very easily see threads on GPU up to threadIdx == 128, however, when I try to see threads with higher index, meaning that blocks other than the first block, using debugging focus dialog box reached through CUDA Debug focus, I am having difficulty, switching to other blocks. 我可以很容易地看到GPU上的线程最多达到threadIdx == 128,但是,当我尝试使用通过CUDA Debug focus到达的debug focus对话框来查看具有更高索引的线程时,这意味着除第一个块以外的其他块,困难,切换到其他块。 Is this normal operation of Nsight or not, any answers would be appreciated. 是否为Nsight的这种正常运行方式,任何答复将不胜感激。 Thanks all. 谢谢大家

I have found a way to see blocks with index higher than zero, what you just need to do is to set all the breakpoints in the cuda program as conditional and then start the Nsight debugging environment. 我发现了一种查看索引大于零的块的方法,您只需要将cuda程序中的所有断点设置为有条件的,然后启动Nsight调试环境。 It then shows other blocks as well. 然后,它还会显示其他块。 However, I think that is also related to the number of streaming multiprocessors residing on the GPU. 但是,我认为这也与GPU上流式多处理器的数量有关。 According to my knowledge, number of streaming multiprocessors is equal to the number of blocks that can run simultaneously at the same time. 据我所知,流式多处理器的数量等于可以同时运行的块的数量。 I have been using for some time GeForce GT630 and that have only single streaming multiprocessor which is why I'm seeing only the first block running but not the others. 我使用GeForce GT630已经有一段时间了,它只有一个流式多处理器,这就是为什么我只看到第一个块运行而没有看到其他块的原因。 However, debugging is still so slow. 但是,调试仍然很慢。

Hi switching blocks is a common operation in Nisght, please follow these steps 您好,切换块是Nisght中的常见操作,请按照以下步骤操作

  1. Launch your cuda app and wait until one bp is hit. 启动您的cuda应用,然后等待被击中1 bp。
  2. Open the "CUDA Info" windows via "Visual studio -> Nsight -> Windows -> Cuda Info" 通过“ Visual Studio-> Nsight-> Windows-> Cuda Info”打开“ CUDA Info”窗口
  3. Switch the page to block, you can see all the launched blocks in current app. 切换页面为阻止,您可以查看当前应用程序中所有已启动的阻止。
  4. Double click each line and you can switch to another block. 双击每行,您可以切换到另一个块。
  5. You can do the same operation for warp and thread 您可以对扭曲和线程执行相同的操作

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

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