如何解决“错误:NVIDIA 内核模块“nvidia-uvm”似乎已加载到您的内核中”?

tri*_*oid 5 nvidia cuda

我正在尝试在我的 ubuntu 上安装 cuda 10,我已经有 nvidia-cuda-toolkit 9.2 所以这应该是一个升级

我下载安装自解压程序并执行它:

sudo ./cuda_10.0.130_410.48_linux.run 
Run Code Online (Sandbox Code Playgroud)

但是,当我完成所有选项时,引发了以下错误。

ERROR: An NVIDIA kernel module 'nvidia-uvm' 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.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
Run Code Online (Sandbox Code Playgroud)

我安装nvidia-cuda-toolkit 9.2时从未遇到过这个错误(尽管始终使用nvidia驱动程序)。为什么最新版本无法处理这种情况?cuda 10对ubuntu的支持不好吗?

环境:

  • ubuntu 18.04
  • nvidia-驱动程序-410
  • nvidia-cuda-工具包 9.2
  • 没有使用 bbswitch

JNi*_*ing 2

我也遇到了同样的问题。错误原因是我在安装cuda的时候不小心选择了“Install nvidia driver”。

那么,在安装CUDA的过程中,当遇到以下选项时:

安装适用于 Linux-x86_64 384.81 的 NVIDIA 加速显卡驱动程序?(y)es/(n)o/(q)uit:

请选择q,问题将得到解决。


小智 0

也许你在这台机器上使用 nvidia-docker\xef\xbc\x8cif 所以尝试遵循命令。

\n\n
sudo service lightdm stop\nsudo stop nvidia-digits-server\nsudo service docker stop\nsudo rmmod nvidia-uvm\n
Run Code Online (Sandbox Code Playgroud)\n\n

service nvidia-docker stop也将解决它(如果UVM仅被使用nvidia-docker

\n