본문 바로가기
Appz Knowledge/AI, DL, ML

CUDA/RHEL 8.5 + CUDA 11.7 + Driver 515.65.01

by 스쳐가는인연 2022. 8. 30.

System Information
ML350 Gen10 (51xx CPU)

1. Set SW level
System ROM 2.62 / IE 0.2.3.0.0 / SPS 4.1.4.601 / iLO 2.65

2. Set WP
a. Restore Set Default
b. Virtualization - Max Performance: Yes  

3. Install RHEL 8.5
a. Set "nomodeset" during Install
- Edit<E> GRUB: add "nomodeset"
  linuxefi /images/pxeboot/vmlinuz ... nomodeset quiet

b. Server with GUI
+ Development Tools

c. Configure network

5. Install NVidia GPU Driver
a. configure yum repositories

b. blacklist nouveau and acpi_power_meter
# modprobe -r acpi_power_meter

# echo "blacklist acpi_power_meter" > /etc/modprobe.d/blacklist-acpi_power_meter.conf
# echo "install acpi_power_meter /bin/false" >> /etc/modprobe.d/blacklist-acpi_power_meter.conf

# vim /etc/sensors3.conf
   chip "power_meter-acpi-0"
   ignore power1


# modprobe -r nouveau

# echo "blacklist nouveau" > /etc/modprobe.d/blacklist-nouveau.conf
# echo "options nouveau modeset=0" >> /etc/modprobe.d/blacklist-nouveau.conf
# echo "install nouveau /bin/false" >> /etc/modprobe.d/blacklist-nouveau.conf

# cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.$(date +%m-%d-%H%M%S).bak
# dracut --omit-drivers nouveau -f

# grub2-editenv - set "$(grub2-editenv - list | grep kernelopts) nouveau.blacklist=1 rd.driver.blacklist=nouveau"
# cp /boot/initramfs-$(uname -r)kdump.img /boot/initramfs-$(uname -r)kdump.img.$(date +%m-%d-%H%M%S).bak
# sed -i '/^KDUMP_COMMANDLINE_APPEND=/s/"$/ rd.driver.blacklist=nouveau"/' /etc/sysconfig/kdump
# kdumpctl restart
# mkdumprd -f /boot/initramfs-$(uname -r)kdump.img

# reboot


c. install GPU Driver
# dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/cuda-$distro.repo

e.g.) 

# dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
# dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo


# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

# dnf install gcc gcc-c++ kernel-devel freeglut-devel libX11-devel libXi-devel libXmu-devel make mesa-libGLU-devel elfutils-libelf-devel 
# dnf install https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/j/jxrlib-1.1-1.el8.x86_64.rpm
# dnf install https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/f/freeimage-3.17.0-5.el8.x86_64.rpm
# dnf install https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/f/freeimage-devel-3.17.0-5.el8.x86_64.rpm
# dnf install https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/d/dkms-3.0.6-1.el8.noarch.rpm

cf.
$ sudo systemctl isolate multi-user.target
$ sudo systemctl start graphical.target

$ sudo systemctl set-default multi-user
$ sudo systemctl set-default graphical

$ sudo systemctl isolate multi-user.target

cf. CUDA 11.7 / 515.65.01
$ wget https://us.download.nvidia.com/XFree86/Linux-x86_64/515.65.01/NVIDIA-Linux-x86_64-515.65.01.run
# chmod +x NVIDIA-Linux-x86_64-515.65.01.run
# sh ./NVIDIA-Linux-x86_64-515.65.01.run

$ wget https://developer.download.nvidia.com/compute/cuda/11.7.1/local_installers/cuda_11.7.1_515.65.01_linux.run
# chmod +x cuda_11.7.1_515.65.01_linux.run
# sh cuda_11.7.1_515.65.01_linux.run

$ sudo vim ~/.bashrc
PATH=/usr/local/cuda-11.7/bin:/usr/local/cuda-11.7/samples:/usr/local/cuda-11.7/extras/demo_suits:${PATH:+:${PATH}}
LD_LIBRARY_PATH=/usr/local/cuda-11.7/lib64:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

$ source ~/.bashrc

$ sudo /usr/bin/nvidia-persistenced --verbose

$ sudo systemctl start graphical.target

 

Note. multi-user mode 상태로는 동작하나, graphical mode 구동 실패 ... 뭐 땜시 안되는 걸깡 ...

 

 

 

 

 

반응형