我正在尝试在运行 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.
发布评论
评论(3)
我首先将驱动程序升级到
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 runningnvidia-smi -a
to see if the driver is happy. Then I second the suggestion to rundeviceQuery
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.
deviceQuery 说什么?运行该程序后,还要立即检查 dmesg 的输出,看看是否可以弄清楚发生了什么。
另一个提示,如果您仍然遇到问题,请尝试运行:
然后检查 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:
Then check out.txt to see if you can find any clues why this error is occuring.
我有类似的问题,但通过更新内核和驱动程序解决了。
在 10.04 上安装更新的内核
下载最新的 nvidia 驱动程序
来自 http://www.nvidia.com/Download/index.aspx? lang=en-us
安装最新的 CUDA(4.0 版本)
http://developer.nvidia.com/cuda-toolkit-40
然后我通过了所有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
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
then I passed all SDK example tests.
ThinkPad w520 Quadro 1000 on Ubuntu 10.04