How to install Intel GPU driver
Disable the nouveau drivers
To install the Display Driver, disable the Nouveau drivers first.
Step 1. Configure the operating system to start on the text console and then restart the system: Note: This step is required only when the operating system is configured to start on a graphical desktop.
nodeshell compute systemctl set-default multi-user.target
Step 2. Add the configuration file:
cat << eof > $share_installer_dir/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
eof
Step 3. Distribute the configuration file:
nodeshell compute cp $share_installer_dir/blacklist-nouveau.conf \
/usr/lib/modprobe.d/blacklist-nouveau.conf
Step 4. Regenerate the kernel initramfs:
nodeshell compute dracut --force
Step 5. Make the configuration take effect:
nodeshell compute reboot
Configure the Intel graphics repositories
Step 1. Download the following package: https://hpc.lenovo.com/lico/downloads/7.1/intel_graphics.el8.x86_64.tgz.
Step 2. Upload the package to the /root directory and set environment variable.
cd /root
cat > intel-graphic_env.local << EOF
# repository directory for intel-graphic
intel_graphics_repo_dir="/install/custom/intel-graphics-rhel8.6"
# link name of repository directory for intel-graphic
link_intel_graphics_repo_dir="/install/custom/intel-graphics"
EOF
Step 3. Configure the repository for the management node:
cd /root
source lico_env.local
source intel-graphic_env.local
mkdir -p $intel_graphics_repo_dir
tar -xvf intel_graphics.el8.x86_64.tgz -C $intel_graphics_repo_dir
rm -rf $link_intel_graphics_repo_dir
ln -s $intel_graphics_repo_dir $link_intel_graphics_repo_dir
$link_intel_graphics_repo_dir/mklocalrepo.sh
Attention: Before running the commands, ensure that the management node has configured a local operating system repository for the above and the subsequent actions.
Step 4. Configure the repository for other nodes:
cp /etc/yum.repos.d/intel-graphics.repo $share_installer_dir
sed -i '/^baseurl=/d' $share_installer_dir/intel-graphics.repo
sed -i '/^gpgkey=/d' $share_installer_dir/intel-graphics.repo
sed -i "/name=Intel-graphics/a\baseurl=http://${sms_name}\
${link_intel_graphics_repo_dir}/graphics/rhel/8.6" $share_installer_dir/intel-graphics.repo
sed -i "/name=Intel-graphics/a\gpgkey=http://${sms_name}\
${link_intel_graphics_repo_dir}/intel-graphics.key" $share_installer_dir/intel-graphics.repo
nodeshell compute cp $share_installer_dir/intel-graphics.repo /etc/yum.repos.d/
nodeshell compute dnf clean all
nodeshell compute dnf makecache
Intel GPU driver installation
The GPU driver should be installed on each GPU compute node. If only a subset of nodes is installed with GPUs, replace the compute argument in nodeshell commands with the corresponding node range of GPU nodes.
nodeshell compute dnf install -y openssl-devel gcc bison flex bc bzip2-devel \
elfutils-libelf-devel rsync rpm-build make perl lz4 redhat-lsb-core patch dkms
Install Linux kernel header files in compute node
nodeshell compute dnf install -y kernel-devel-$(uname -r) \
kernel-headers-$(uname -r)
Install DKMS kernel modules
nodeshell compute dnf install -y intel-i915-dkms intel-dmabuf-dkms \
intel-platform-vsec-dkms intel-platform-cse-dkms
Install GPU software packages
nodeshell compute dnf install -y \
intel-opencl libvpl2 \
level-zero intel-level-zero-gpu \
libdrm intel-metrics-discovery \
intel-metrics-library intel-igc-core intel-igc-cm \
intel-gmmlib libmetee intel-gsc
Install developer packages
If you will be doing development, you may want to install optional development packages. oneAPI users will need to install these packages for some of the oneAPI tools to function correctly:
nodeshell compute dnf install --refresh intel-igc-opencl-devel \
level-zero-devel intel-gsc-devel libmetee-devel
Reboot the system for these changes to take effect
nodeshell compute reboot
Install Intel XPU Manager
Intel XPU Manager package should be installed on each GPU compute node.
download XPU Manager package and install it in compute node
wget https://github.com/intel/xpumanager/releases/download/V1.2.12/xpumanager-1.2.12-20230615.060233.005a974f.el8.x86_64.rpm
dnf install xpumanager-1.2.12-20230615.060233.005a974f.el8.x86_64.rpm
Run the following command on the GPU nodes to verify Intel GPU driver whether installed successfully
[root@c1 ~]#xpumcli discovery
+-----------+--------------------------------------------------------------------------------------+
| Device ID | Device Information |
+-----------+--------------------------------------------------------------------------------------+
| 0 | Device Name: Intel(R) Graphics [0x56c1] |
| | Vendor Name: Intel(R) Corporation |
| | UUID: 01000000-0000-0000-0000-000000b70000 |
| | PCI BDF Address: 0000:b7:00.0 |
| | DRM Device: /dev/dri/card0 |
+-----------+--------------------------------------------------------------------------------------+
| 1 | Device Name: Intel(R) Graphics [0x56c1] |
| | Vendor Name: Intel(R) Corporation |
| | UUID: 01000000-0000-0000-0000-000000bb0000 |
| | PCI BDF Address: 0000:bb:00.0 |
| | DRM Device: /dev/dri/card1 |
+-----------+--------------------------------------------------------------------------------------+