cuda-gdb在Linux上的nsight中不起作用 [英] cuda-gdb not working in nsight on linux

查看:228
本文介绍了cuda-gdb在Linux上的nsight中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 12.10中安装了cuda 5,它运行良好,我也可以通过终端中的cuda-gdb进行编译和调试.我正在尝试使用nsight,它可以毫无问题地编译和执行我的代码,但是当我尝试调试时,出现了以下错误

I installed cuda 5 in my Ubuntu 12.10 and it is working well, I can compile and debug through cuda-gdb in terminal as well. I'm trying to use nsight, it compiles and executes my code with no issues, but when I try to debug I got the following error

Error in final launch sequence
Failed to execute MI command:
-gdb-set cuda api_failures ignore
Error message from debugger back end:
Undefined set cuda command: "api_failures ignore".  Try "help set cuda".
Undefined set cuda command: "api_failures ignore".  Try "help set cuda".

我使用的是ubuntu 12.10 64位,并使用optirun(大黄蜂)启动cuda可执行文件和nsight,因为我有GTX 675M(optimus).我通过apt-get安装了cuda-gdb,得到了4.2版本:

I'm using ubuntu 12.10 64 bits and launching cuda executables and nsight with optirun (bumblebee) because I have a GTX 675M (optimus). I installed cuda-gdb throught apt-get, I got version 4.2:

frederico@zeus:~/Dropbox/coisas/projetos/delta_cuda$ cuda-gdb --version
NVIDIA (R) CUDA Debugger
4.2 release
Portions Copyright (C) 2007-2012 NVIDIA Corporation
GNU gdb (GDB) 7.2

我认为这不是问题,因为我可以单独使用它(无需nsight).我将nsight更改为也使用optirun启动cuda-gdb,始终收到相同的错误.

I think this is not a problem since I can use it alone (without nsight). I changed nsight to launch cuda-gdb with optirun as well, keep receiving the same error.

推荐答案

问题是cuda-gdb的版本,我不得不使用cuda-gdb版本5.它随工具包版本5一起提供,只是做了象征性的舔到/usr/bin并正常工作.

The problem was the version of cuda-gdb, I had to use cuda-gdb version 5. It comes with the toolkit version 5, just did a symbolic lick to /usr/bin and it's working.

这篇关于cuda-gdb在Linux上的nsight中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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