我是靠谱客的博主 外向御姐,最近开发中收集的这篇文章主要介绍linux:ubuntu20.04,cuda配置历程,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

1.关闭安全启动(极为重要)

万一不幸忘记关闭

sudo chmod +x *.run
sudo ./NVIDIA-Linux-x86_64-384.59.run --uninstall

2.参考下面博主博客https://blog.csdn.net/m0_37412775/article/details/109355044

3.修改部分:查阅发现:新手门注意,下载的文件的地址在哪儿,按照上面博主的命令,软件就会安装在哪儿,我将要安装的cuda驱动安装run文件放在了/opt下。

cd /opt
sudo mkdir download
sudo chmod 777 /opt
cp /home/cmx/download/NVIDIA-Linux-x86_64-510.54.run /opt #注意前面的地址是你文件放的地 sudo chmod a+x NVIDIA-Linux-x86_64-510.54.run
sudo ./NVIDIA-Linux-x86_64-510.54.run  -no-x-check -no-nouveau-check -no-opengl-files




另外参考ubuntu18.04 安装Nvidia驱动的三种方式(必看)_低吟浅笑的博客-CSDN博客_ubuntu18.04安装nvidia显卡驱动

1. There appears to already be a driver installed on your system (version:      
  390.42).  As part of installing this driver (version: 390.42), the existing  
  driver will be uninstalled.  Are you sure you want to continue? 
  Continue installation      Abort installation 
(选择 Coninue,如果是重装的话)
2. The distribution-provided pre-install script failed!  Are you sure you want
  to continue?                                                                 
 Continue installation      Abort installation       
(选择 Cotinue)
3. Would you like to register the kernel module sources with DKMS? This will    
  allow DKMS to automatically build a new module, if you install a different   
  kernel later.
Yes                       No  
(这里选 No)
4. Install NVIDIA's 32-bit compatibility libraries?
    Yes                       No  
(这里选 No)
5. Installation of the kernel module for the NVIDIA Accelerated Graphics Driver
  for Linux-x86_64 (version 390.42) is now complete.                           
  OK
6.Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up. 
    Yes                       No  
(这里选 Yes)

最后

以上就是外向御姐为你收集整理的linux:ubuntu20.04,cuda配置历程的全部内容,希望文章能够帮你解决linux:ubuntu20.04,cuda配置历程所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(53)

评论列表共有 0 条评论

立即
投稿
返回
顶部