前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >centos7 安装NVIDIA P4000

centos7 安装NVIDIA P4000

作者头像
cuijianzhe
发布2022-06-14 17:21:53
1.4K0
发布2022-06-14 17:21:53
举报
文章被收录于专栏:cuijianzhe

Quadro P4000 显卡在 centos7 安装

官网下载对应 redhat 驱动: https://www.dell.com/support/home/cn/zh/cnbsd1/product-support/servicetag/2xhzrt2/drivers

执行:

[root@localhost ~]# sh NVIDIA-Linux-x86_64-396.37.run

出现如下报错:

代码语言:javascript
复制
  ERROR: The Nouveau kernel driver is currently in use by your system.  This driver is incompatible with the NVIDIA driver, and must be disabled before proceeding.  Please consult the NVIDIA driver README and your Linux distribution's documentation for details on how  
         to correctly disable the Nouveau kernel driver.             

解决方法:

代码语言:javascript
复制
[root@localhost ~]# cd /etc/modprobe.d/
[root@localhost modprobe.d]# ls
dccp-blacklist.conf  firewalld-sysctls.conf  tuned.conf
[root@localhost modprobe.d]# cp dccp-blacklist.conf blacklist.conf 
[root@localhost modprobe.d]# vim blacklist.conf 

# DCCP is considered a potential security liability: prevent socket layer
# from automatically loading related modules using their aliases

blacklist dccp
blacklist dccp_diag
blacklist dccp_ipv4
blacklist dccp_ipv6
blacklist nouveau
        #添加此配置,把nouveau
 加入黑名单
代码语言:javascript
复制
[root@localhost modprobe.d]# mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak  # #使用dracut重新建立 initramfs image file
[root@localhost modprobe.d]# dracut -v /boot/initramfs-$(uname -r).img $(uname -r)
   #使用dracut重新建立 initramfs image file  #重新建立the initramfs file

reboot

重启

查看进程是否还有:

[root@localhost ~]# lsmod | grep nouveau

执行下一步:

代码语言:javascript
复制
 ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the package 'gcc' installed.  If gcc is installed on your system, then please check that `cc` is in your PATH.   

出现如上报错,解决方法:

[root@localhost ~]# yum install -y gcc

执行驱动文件,再次出现报错如下:

代码语言:javascript
复制
 ERROR: Unable to find the kernel source tree for the currently running kernel.  Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the             

         'kernel-source' or 'kernel-devel' RPM installed.  If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option. 

解决方法:

[root@localhost ~]# yum install kernel-* -y

然后再次执行 reboot,&&执行驱动文件:对于 nvidia 显卡的话可以用 nvidia-smi 命令来查,查看 GPU 也是用这个命令

代码语言:javascript
复制
[root@localhost ~]# nvidia-smi

Thu Apr 18 16:08:11 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.37                 Driver Version: 396.37                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro P4000        Off  | 00000000:65:00.0 Off |                  N/A |
| 46%   37C    P0    27W / 105W |      0MiB /  8119MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
[root@localhost ~]# 

如上可以看到显卡 GPU 型号 P4000,安装执行成功。


标题:centos7 安装NVIDIA P4000

作者:cuijianzhe

地址:https://cloud.tencent.com/developer/article/2022737

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档