Nsight 调试出现Parallel Nsight Debug CUDA grid launch failed: CUcontext: 211577632 CUmodule: 223878456

  今天进行单机Nsight调试时出现了local debugging failed,Nsight is incompatible with Aero desktop.接着换了一个电脑主题(非Aero模式)后问题又接着出现了,CUDA kernel debugging is disabled ,breakpoints will not be hit in any kernel,Enable kernel debugging with Nsight/options/CUDA/CUDA debugger/Enable kernel launch debugging,按照提示更改了Options之后又出现了问题:CUDA grid launch failed,CUcontext:29715464 CUmodule:39436344 Function;_z9addkernelPipkis1

        Parallel Nsight CUDA Debugger
------------------------------------------------------------------------------


The application being debugged with the Nexus CUDA debugger, was unable to
find any associated source. This could be for a number of reasons:


1) CUDA has not been initialized.
Make sure cuInit has been called, and it returned a successful result.


2) No CUDA contexts have been created.
Once a context is created, memory can be examined in the context. Each context
shows up as a single "Thread" in the Visual Studio Threads view. (Debug | Windows | Threads)


3) There are no active CUDA grids in any context.
A grid must be launched in order to hit breakpoints.


4) You have selected the "Default Context" in the Visual Studio Threads view.
This context is a placeholder shown when there are no available actual CUDA 
contexts. It does not show real data.


5) No CUDA modules have been loaded.
You can see which modules are loaded in each CUDA context by showing the 
Visual Studio Modules view. (Debug | Windows | Modules)


6) Symbolics were not found for the loaded .cubin.
The module needs to be built with debug information. Please specify the
-G0 switch when building.


7) A grid launch failed while running a kernel.

针对网上说的要选择270.81版本的N卡驱动,我的机器是Geforce GT540M,安装不了270.81版本(可能是版本较低),我重新安装了比较新的N卡驱动(332.21版本)

而且我的显示器确保连接的是集成显卡。

针对第一个问题,我对CUDA进行了初始化,显示我有 one device初始化成功。

最后发现问题的根源在于驱动的问题。换了一个N卡驱动(275.33),原先装的是327.23(网上推荐的270.81无法安装)

事实证明驱动不是越新越好。

并且针对此情况我特别进行了单机双卡调试与双机调试

结果我这台装了275.33驱动的笔记本可以单机调试成功

当进行双机调试时,那台装了320.81的台式机作为目标机,我的笔记本作为主机时不能运行。反过来可以正常双机调试。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值