centos7 安裝NVIDIA P4000

位置:首頁 / 新聞中心 / 知識教程

知識教程 Admin 2024-02-23 16:25:31 959

Quadro P4000顯卡在centos7安裝

官網下載對應驅動。
執(zhí)行:
[root@localhost ~]# sh NVIDIA-Linux-x86_64-396.37.run

出現(xiàn)如下報錯:

ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver
 
解決辦法:
# systemctl stop gdm.service  



出現(xiàn)如下報錯:

  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.             

解決方法:

[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
 加入黑名單

[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

執(zhí)行下一步:

 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.   

出現(xiàn)如上報錯,解決方法:

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

執(zhí)行驅動文件,再次出現(xiàn)報錯如下:

 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
然后再次執(zhí)行reboot,&&執(zhí)行驅動文件:對于nvidia顯卡的話可以用nvidia-smi命令來查,查看GPU也是用這個命令

[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,安裝執(zhí)行成功。

以上就是“centos7 安裝NVIDIA P4000”的詳細內容,更多請關注木子天禾科技其它相關文章!


以上就是“centos7 安裝NVIDIA P4000”的詳細內容,更多請關注木子天禾科技其它相關文章!

15934152105 掃描微信