Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the driver for Ali ECS GPU (system: CentOS7.3 GPU:Nvidia P100)

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

First, configure DNS and yum

1. Configure DNS

[root@gpu-test-01 ~] # vim / etc/resolv.conf nameserver 223.5.5.5nameserver 114.114.114.114options timeout:2 attempts:3 rotate single-request-reopen description: I have configured two external DNS 223.5.5.5 and 114.114.114.114 [root @ gpu-test-01 ~] # chattr + I / etc/reslov.conf

2. Configure yum

[root@gpu-test-01 ~] # cd / etc/yum.repos.d/ [root@gpu-test-01 yum.repos.d] # rm-rf. / * [root@gpu-test-01 yum.repos.d] # mv / etc/yum.repos.d/* / tmp [root@gpu-test-01 yum.repos.d] # wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo [root@gpu-test-01 yum.repos.d] # wget-O / etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo[root@gpu-test-01 yum.repos.d] # wget https://us.download.nvidia.cn/tesla/418.67/nvidia-diag-driver-local-repo-rhel7-418.67-1.0-1.x86_64.rpm[root@gpu-test-01 yum.repos. D] # yum install nvidia-diag-driver-local-repo-rhel7-418.67-1.0-1.x86_64.rpm-y [root@gpu-test-01 yum.repos.d] # mv nvidia-diag-driver-local-repo-rhel7-418.67-1.0-1.x86_64.rpm / tmp/

Download the driver package

1. Download the P100/P4 driver:

[root@gpu-test-01 ~] # wget http://us.download.nvidia.com/tesla/396.44/NVIDIA-Linux-x86_64-396.44.run

2. Download the kernel development package:

[root@gpu-test-01 ~] # wget https://buildlogs.centos.org/c7.1611.u/kernel/20170620132051/3.10.0-514.21.2.el7.x86_64/kernel-devel-3.10.0-514.21.2.el7.x86_64.rpm

3. Download the cuda package: (if you use yum to install cuda-drivers, this step can also be ignored)

[root@gpu-test-01 ~] # wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_9.1.85_387.26_linux

III. Configuration information

Download and install the kernel-devel and kernel-header packages for the corresponding versions of kernel

[root@gpu-test-01] # rpm-ivh kernel-devel-3.10.0-514.21.2.el7.x86_64.rpm Preparing... # # [100%] Updating / installing... 1:kernel-devel-3.10.0-514.21.2.el7 # # [root@gpu-test-01] # sudo rpm-qa | grep $(uname-r) kernel-headers-3.10.0-514.21.2.el7.x86_64kernel-3.10.0-514.21.2.el7.x86room64kernel- Devel-3.10.0-514.21.2.el7.x86_64

Note: inconsistent versions of kernel-devel and kernel will lead to errors in driver compilation during the installation of driver rpm. You can run rpm-qa in the instance | grep kernel to check whether the version is consistent. After confirming the version, reinstall the driver.

[root@gpu-test-01 ~] # sh NVIDIA-Linux-x86_64-396.44.run follow the boot path to the next step:

Verify that the installation is successful:

[root@gpu-test-01 ~] # nvidia-smi Sat Jun 22 18:39:14 2019 +-+ | NVIDIA-SMI 396.44 Driver Version: 396.44 |-- + | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | = | 0 Tesla P100 painting PCIE. Off | 000000000MiB 08.0 Off | 0 | | Nash A 33C P027W / 250W | 0MiB / 16280MiB | 4% Default | +-- +-- +- -+ +-+ | Processes: GPU Memory | | GPU PID Type Process name Usage | | = | | No running processes found | +-+

At this point, the driver has been installed.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report