CUDA 可以在 12.10 上运行吗?

CUDA 可以在 12.10 上运行吗?

有人在 Ubuntu 12.10 上尝试过使用 Blender 或其他程序的 CUDA 吗?在 Quantal 的上一个测试版中,CUDA 无法工作。我想从 12.04 更新到 12.10 最终版,但前提是 CUDA 仍然有效。有没有人已经有过这方面的经验?谢谢

答案1

CUDA 5.0 在 ubuntu 12.10 上安装失败:

$ uname -a
Linux yoyo-laptop 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:        12.10
Codename:       quantal

$ cd /opt

$ sudo wget -c http://developer.download.nvidia.com/compute/cuda/5_0/rel/installers/cuda_5.0.35_linux_64_ubuntu11.10.run

$ md5sum cuda_5.0.35_linux_64_ubuntu11.10.run
dd82e9d1c5739806690c311e2f56c928  cuda_5.0.35_linux_64_ubuntu11.10.run

$ sha1sum cuda_5.0.35_linux_64_ubuntu11.10.run
bae5870868217bb0bc07d53a7e824301f9752e6a  cuda_5.0.35_linux_64_ubuntu11.10.run

$ sudo chmod +x cuda_5.0.35_linux_64_ubuntu11.10.run

$ sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-4.5 50

$ gcc --version
gcc (Ubuntu/Linaro 4.5.4-1ubuntu2) 4.5.4

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/libglut.so

$ sudo ./cuda_5.0.35_linux_64_ubuntu11.10.run -verbose -optimus

Do you accept the previously read EULA? (accept/decline/quit): accept

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 304.54? ((y)es/(n)o/(q)uit): y

Install the CUDA 5.0 Toolkit? ((y)es/(n)o/(q)uit): y

Enter Toolkit Location [ default is /usr/local/cuda-5.0 ]:

Install the CUDA 5.0 Samples? ((y)es/(n)o/(q)uit): y

Enter CUDA Samples Location [ default is /usr/local/cuda-5.0/samples ]:

Installing the NVIDIA display driver...

Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 304.54...............................................................................................................................................................
Installing the CUDA Toolkit in /usr/local/cuda-5.0.
Verifying archive integrity... All good.
Uncompressing NVIDIA CUDA..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
===========
= Summary =
===========

Driver:   Installation Failed
Toolkit:  Installation Failed
Samples:  Cannot find Toolkit in /usr/local/cuda-5.0

Logfile is /tmp/cuda_install_30203.log

答案2

首先安装gcc-4.4g++-4.4然后创建 的符号链接sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.4,它不是太干净,但可能您应该先删除 的符号链接/usr/bin/gcc

答案3

最简单的解决方案是:

然后它可以毫无问题地检测到 cuda gpu。(当然,前提是你已经正确安装了最新的专有 nvidia 驱动程序)

是的,我知道这并不像从 repo 或 ppa 安装时那样优雅,但对我来说,最重要的是它能工作,这样我就可以 使用 blender 和 cycles。

如果您不需要 cuda 工具包(用于开发等),我认为这也是您可以接受的解决方法。

相关内容