我已经花了两天时间试图完成它,但没有快乐。请帮忙!
我正在尝试安装CUDA 5.5驱动程序,这是工具包附带的驱动程序。截至昨天,我已经开始在FC17,但在各种尝试的过程中,我已升级到FC18。
首先,这是我的问题:CUDA的存储库想要安装版本319.37,但我当前的版本是319.32(我可以从rpmfusion获得的版本)。来自rpmfusion的驱动程序版本适用于我的视频卡。当我将CUDA的存储库添加到yum
识别的存储库列表中,然后尝试从那里安装时,驱动程序将不会加载声明版本不匹配。
所以......我被困住了。我无法安装其他与CUDA相关的库,因为它们列出了与我的内核不兼容的依赖项(?)我不确定该版本号是什么。
这是yum
想要安装的内容,一旦被要求安装cuda
:
Installing:
cuda x86_64 5.5-22 cuda 2.4 k
Installing for dependencies:
cuda-5-5 x86_64 5.5-22 cuda 3.3 k
nvidia-modprobe x86_64 319.37-1.fc18 cuda 14 k
xorg-x11-drv-nvidia-devel i686 1:319.37-2.fc18 cuda 116 k
xorg-x11-drv-nvidia-devel x86_64 1:319.37-2.fc18 cuda 116 k
xorg-x11-drv-nvidia-libs i686 1:319.37-2.fc18 cuda 28 M
Updating for dependencies:
xorg-x11-drv-nvidia x86_64 1:319.37-2.fc18 cuda 5.1 M
xorg-x11-drv-nvidia-libs x86_64 1:319.37-2.fc18 cuda 28 M
这是我的内核版本:
$ uname -r
3.10.6-100.fc18.x86_64
这是我在尝试安装上述内容后得到的消息(我现在已经恢复到rpmfusion版本)。
Aug 16 13:20:59 wvxvvw-laptop avahi-daemon[706]:
Registering new address record for fe80::5604:a6ff:fe44:3bfa on p5p1.*.
Aug 16 13:20:59 wvxvvw-laptop kernel: [ 23.086087] NVRM:
API mismatch: the client has the version 319.37, but
Aug 16 13:20:59 wvxvvw-laptop kernel: [ 23.086087] NVRM:
this kernel module has the version 319.32. Please
Aug 16 13:20:59 wvxvvw-laptop kernel: [ 23.086087] NVRM:
make sure that this kernel module and all NVIDIA driver
Aug 16 13:20:59 wvxvvw-laptop kernel: [ 23.086087] NVRM:
components have the same version.
Aug 16 13:20:59 wvxvvw-laptop kdm[1112]:
X server died during startup
为便于阅读而格式化
答案 0 :(得分:1)
如果您使用的是64位FC18,并且使用RPM方法时遇到问题,请改用安装方法。
您可以找到CUDA 5.5套件here。
以下是installer的直接链接。
完成安装程序后,如果它在您的系统上放置了您不需要的驱动程序版本,则可以返回并重新安装319.32驱动程序。或者,您可以在使用安装程序方法时选择退出驱动程序安装步骤。
我会在切换回319.32之前检查cuda 5.5安装的驱动程序是否有效。我的感觉是319.32应该可以使用CUDA 5.5,但是您可能需要找到一个适用于您的视频卡的新NVIDIA驱动程序,并且还可以使用CUDA。 CUDA 5.5附带的驱动程序应该适用于大多数或所有GPU。你没有提到你正在使用的GPU。
你得到的投票结果非常接近,因为关于系统设置的问题通常都是SO的主题。
答案 1 :(得分:1)
添加回购:
sudo rpm -Uhv cuda-repo-fedora18-5.5-0.x86_64.rpm
//you can download it from https://developer.nvidia.com/cuda-downloads
安装gcc,kernel-devel和更新内核
sudo yum install gcc-c++ kernel-devel
sudo yum update kernel kernel-devel
删除nouveau驱动程序
sudo yum remove xorg-x11-drv-nouveau
sudo yum install nvidia-settings nvidia-kmod
sudo yum install xorg-x11-drv-nvidia //Maybe it is not necessary
./NVIDIA-Linux-x86_64-xxx.xx.run //download from http://www.geforce.com/drivers
添加到/ etc / default / grubenter
GRUB_CMDLINE_LINUX_DEFAULT="rdblacklist=nouveau nouveau.modeset=0"
重新启动
sudo reboot
安装cuda
sudo yum install cuda
添加到.bashrc
export CUDA_HOME=/usr/local/cuda-5.5
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
PATH=${CUDA_HOME}/bin:${PATH}
export PATH
答案 2 :(得分:0)
截至2013-10-02,这似乎是一个问题,因为Fedora 18已升级到Linux内核版本3.10.x. nvidia CUDA存储库中的nvidia内核模块无法在此环境中构建。
Fedora 19似乎存在类似问题。请注意,Fedora 19不在CUDA 5.5支持的发行版列表中。请参阅Nvidia开发人员论坛中的this conversation。