CUDA error: all CUDA-capable devices are busy or unavailable(已解决)

本文介绍了如何解决Ubuntu中因显卡驱动版本不正确导致的问题。用户意外删除了原本的450.102.04版本,尝试通过`sudo ubuntu-drivers autoinstall`安装了460.32.31版本,导致系统报错。解决方法是下载并重新安装450.102.04版本的显卡驱动。在安装过程中可能遇到已加载内核模块的问题,需要遵循文中的链接提供的解决步骤进行操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我遇到问题的原因:显卡驱动安装版本不正确

通过sudo ubuntu-drivers autoinstall

自动安装的版本为460.32.31

而原版本(误删)应该是450.102.04

所以导致报错

解决方法:卸载重装

官网下载相应显卡驱动450.102.04

安装

sudo sh cuda_6.5.14_linux_64.run

在这里插入图片描述
选择continue,YES,最后ok

在安装过程可能会遇到问题: An NVIDIA kernel module ‘nvidia-drm’ appears to already be loaded in your kernel. This may be because it is in use
(for example, by an X server, a CUDA program, or the NVIDIA
Persistence Daemon), but this may also happen if your kernel was
configured without support for module unloading. Please be sure to
exit any programs that may be using the GPU(s) before attempting to
upgrade your driver. If no GPU-based programs are running, you know
that your kernel supports module unloading, and you still receive this
message, then an error may have occured that has corrupted an NVIDIA
kernel module’s usage count, for which the simplest remedy is to
reboot your computer.

解决方法:https://zhuanlan.zhihu.com/p/135875408

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值