Scripts for installing GPU drivers for Intel Flex GPU on Ubuntu
Source: https://dgpu-docs.intel.com/driver/installation.html#ubuntu-install-steps
Tested on:
$ more /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
-
Execute the script in order.
-
First, login to the terminal via SSH. Then paste and execute the content of
01_ubuntu_set_repo.txt
-
Execute the script,
02_ubuntu_before_reboot
. After completion, it will reboot. -
After reboot, continue the setup by executing
03_ubunti_after_reboot
. -
When it is completed, run
xpu-smi discovery
to check if the GPUs were discovered.you should see cards such as below:
+-----------+--------------------------------------------------------------------------------------+
| Device ID | Device Information |
+-----------+--------------------------------------------------------------------------------------+
| 0 | Device Name: Intel(R) Data Center GPU Flex 140 |
| | Vendor Name: Intel(R) Corporation |
| | SOC UUID: 00000000-0000-0000-abcd-345634563456 |
| | PCI BDF Address: 0000:90:00.0 |
| | DRM Device: /dev/dri/card1 |
| | Function Type: physical |
+-----------+--------------------------------------------------------------------------------------+
| 1 | Device Name: Intel(R) Data Center GPU Flex 140 |
| | Vendor Name: Intel(R) Corporation |
| | SOC UUID: 00000000-0000-0000-efgh-123412341234 |
| | PCI BDF Address: 0000:93:00.0 |
| | DRM Device: /dev/dri/card2 |
| | Function Type: physical |
+-----------+--------------------------------------------------------------------------------------+
xpu-smi discovery -d0
can be used for specific card.