我的 Ubuntu 10.04 上的 CUDA 是否正确安装?有些示例无法运行。

发布于 2024-10-19 17:11:33 字数 1155 浏览 1 评论 0 原文

我正在尝试在运行 Ubuntu 10.04 的服务器上安装 CUDA。

我按照NVDIA说明安装了“适用于Ubuntu Linux 10.04的CUDA工具包”、“GPU计算SDK代码示例”和“Linux开发人员驱动程序(260.19.26)(64位)”,我的系统是64位。这次安装看起来很成功。从 http://developer.nvidia.com/object/cuda_3_2_downloads.html#Linux 下载的所有内容

根据安装包的消息,我将 /usr/local/cuda/bin 添加到 PATH,将 /usr/local/cuda/lib64:/usr/local/cuda/lib 添加到 LD_LIBRARY_PATH

然后,我尝试运行示例程序。奇怪的是,有些可以运行,有些则不能,但可以毫无问题地制作。

例如,
- convolutionSeparable 会停在那里,没有任何消息,我可以通过 ctrl + c 杀死它。

  • matrixMul 输出一行

    设备 0:具有计算 2.0 功能的“Quadro 5000”

    然后停止,再次可以通过 Ctrl+C 杀死

  • 时钟工作,输出

    通过
    时间 = 12574
    按 ENTER 退出...

  • simpleMultiCopy 输出 PASSED

  • MonteCarlo 输出 PASSED

  • < code>simpleZeroCopy 输出 PASSED

  • bandwidthTest 到此为止光标永远闪烁。

这有什么问题吗?!如何检查 CUDA 安装是否成功?这些程序无法运行是怎么回事?他们甚至没有错误消息。

I am trying to install CUDA on a server running Ubuntu 10.04.

I followed the NVDIA instructions and installed the "CUDA toolkit for Ubuntu Linux 10.04", "GPU Conputing SDK code samples",and "Developer Drivers for Linux (260.19.26) (64 bit)", my system is 64 bit. This installation seems successful. everything downloaded from http://developer.nvidia.com/object/cuda_3_2_downloads.html#Linux

According to the messages of the installation packages, I added /usr/local/cuda/bin to PATH, /usr/local/cuda/lib64:/usr/local/cuda/lib to LD_LIBRARY_PATH

Then, I tried to run the sample programs. The strange things is, some of them can be run, and some of them don't even through they can be made with no problem.

For example,
- convolutionSeparable will just stop there without any message, I can kill it by ctrl + c.

  • matrixMul outputs a line

    Device 0: "Quadro 5000" with Compute 2.0 capability

    and stop there, again can be killed by Ctrl+C

  • clock works, outputs

    PASSED
    time = 12574
    Press ENTER to exit...

  • simpleMultiCopy outputs PASSED

  • MonteCarlo outputs PASSED

  • simpleZeroCopy outputs PASSED

  • bandwidthTest stops there with blinking cursor for ever.

What is wrong with this?! How can I check if my CUDA installation is successful ? What is wrong with those programs don't run? They don't even have a error message.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

幻梦 2024-10-26 17:11:33

我首先将驱动程序升级到 260.19.36,其中 可以在这里找到。然后我建议运行 nvidia-smi -a 来查看驱动程序是否满意。然后我同意运行 deviceQuery 来查看 CUDA Toolkit 3.2 是否正常工作的建议。

如果 deviceQuery 输出看起来正常,那么我将开始添加 printf 来查看 matrixMul 中哪里出了问题。

I would start by upgrading the driver to 260.19.36, which can be found here. Then I would suggest running nvidia-smi -a to see if the driver is happy. Then I second the suggestion to run deviceQuery to see if the CUDA Toolkit 3.2 is working.

If deviceQuery output appears nominal, then I would start adding printf's to see where things go awry in matrixMul.

内心荒芜 2024-10-26 17:11:33

deviceQuery 说什么?运行该程序后,还要立即检查 dmesg 的输出,看看是否可以弄清楚发生了什么。

另一个提示,如果您仍然遇到问题,请尝试运行:

strace ./deviceQuery 2> out.txt

然后检查 out.txt 以查看是否可以找到发生此错误的任何线索。

What does deviceQuery say? Also check the output of dmesg right after you run that program to see if you can figure out whats up.

Another tip, if you still are having issues, is try running:

strace ./deviceQuery 2> out.txt

Then check out.txt to see if you can find any clues why this error is occuring.

七秒鱼° 2024-10-26 17:11:33

我有类似的问题,但通过更新内核和驱动程序解决了。

在 10.04 上安装更新的内核

linux-image-generic-pae-lts-backport-natty
linux-headers-generic-pae-lts-backport-natty

下载最新的 nvidia 驱动程序
来自 http://www.nvidia.com/Download/index.aspx? lang=en-us

安装最新的 CUDA(4.0 版本)
http://developer.nvidia.com/cuda-toolkit-40

CUDA Toolkit for Ubuntu Linux 10.10     32-bit
CUDA Tools SDK  32-bit
GPU Computing SDK code samples 

然后我通过了所有SDK示例测试。

Ubuntu 10.04 上的 ThinkPad w520 Quadro 1000

I have similar problem but solved by updating kernel and drivers.

install newer kernel on 10.04

linux-image-generic-pae-lts-backport-natty
linux-headers-generic-pae-lts-backport-natty

download the latest nvidia driver
from http://www.nvidia.com/Download/index.aspx?lang=en-us

install the latest CUDA (at moment 4.0) from
http://developer.nvidia.com/cuda-toolkit-40

CUDA Toolkit for Ubuntu Linux 10.10     32-bit
CUDA Tools SDK  32-bit
GPU Computing SDK code samples 

then I passed all SDK example tests.

ThinkPad w520 Quadro 1000 on Ubuntu 10.04

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文