#intel https://dgpu-docs.intel.com/driver/installation.html#ubuntu-package-installation sudo apt update sudo apt install -y gpg-agent wget #offline . /etc/os-release if [[ ! " jammy " =~ " ${VERSION_CODENAME} " ]]; then echo "Ubuntu version ${VERSION_CODENAME} not supported" else wget https://repositories.intel.com/gpu/ubuntu/dists/jammy/lts/2350/intel-gpu-ubuntu-${VERSION_CODENAME}-2350.run chmod +x intel-gpu-ubuntu-${VERSION_CODENAME}-2350.run sudo ./intel-gpu-ubuntu-${VERSION_CODENAME}-2350.run fi #online . /etc/os-release if [[ ! " jammy " =~ " ${VERSION_CODENAME} " ]]; then echo "Ubuntu version ${VERSION_CODENAME} not supported" else wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \ sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu ${VERSION_CODENAME}/lts/2350 unified" | \ sudo tee /etc/apt/sources.list.d/intel-gpu-${VERSION_CODENAME}.list sudo apt update fi # drive sudo apt install -y \ linux-headers-$(uname -r) \ linux-modules-extra-$(uname -r) \ flex bison \ intel-fw-gpu intel-i915-dkms xpu-smi sudo reboot #media runtime sudo apt install -y \ intel-opencl-icd intel-level-zero-gpu level-zero \ intel-media-va-driver-non-free libmfx1 libmfxgen1 libvpl2 \ libegl-mesa0 libegl1-mesa libegl1-mesa-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri \ libglapi-mesa libgles2-mesa-dev libglx-mesa0 libigdgmm12 libxatracker2 mesa-va-drivers \ mesa-vdpau-drivers mesa-vulkan-drivers va-driver-all vainfo hwinfo clinfo #Development Packages sudo apt install -y \ libigc-dev intel-igc-cm libigdfcl-dev libigfxcmrt-dev level-zero-dev #Configuring Render Group Membership stat -c "%G" /dev/dri/render* groups ${USER} sudo gpasswd -a ${USER} render newgrp renders #验证 #sudo apt-get install hwinfo hwinfo --display xpu-smi discovery user@user:~$ lspci -nn |grep -Ei 'VGA|DISPLAY' 07:00.0 VGA compatible controller [0300]: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (rev 41) 1a:00.0 VGA compatible controller [0300]: Intel Corporation Device [8086:56a0] (rev 08) 8c:00.0 VGA compatible controller [0300]: Intel Corporation Device [8086:56a0] (rev 08) user@user:~$ lspci -d 8086:56a0 -vvv 1a:00.0 VGA compatible controller: Intel Corporation Device 56a0 (rev 08) (prog-if 00 [VGA controller]) Subsystem: Intel Corporation Device 1020 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 8c:00.0 VGA compatible controller: Intel Corporation Device 56a0 (rev 08) (prog-if 00 [VGA controller]) Subsystem: Intel Corporation Device 1020 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- user@user:~$ xpu-smi discovery +-----------+--------------------------------------------------------------------------------------+ | Device ID | Device Information | +-----------+--------------------------------------------------------------------------------------+ | 0 | Device Name: Intel(R) Arc(TM) A770 Graphics | | | Vendor Name: Intel(R) Corporation | | | SOC UUID: 00000000-0000-001a-0000-000856a08086 | | | PCI BDF Address: 0000:1a:00.0 | | | DRM Device: /dev/dri/card1 | | | Function Type: physical | +-----------+--------------------------------------------------------------------------------------+ | 1 | Device Name: Intel(R) Arc(TM) A770 Graphics | | | Vendor Name: Intel(R) Corporation | | | SOC UUID: 00000000-0000-008c-0000-000856a08086 | | | PCI BDF Address: 0000:8c:00.0 | | | DRM Device: /dev/dri/card2 | | | Function Type: physical | +-----------+--------------------------------------------------------------------------------------+ user@user:~$ xpu-smi discovery -d 0 +-----------+--------------------------------------------------------------------------------------+ | Device ID | Device Information | +-----------+--------------------------------------------------------------------------------------+ | 0 | Device Type: GPU | | | Device Name: Intel(R) Arc(TM) A770 Graphics | | | PCI Device ID: 0x56a0 | | | Vendor Name: Intel(R) Corporation | | | SOC UUID: 00000000-0000-001a-0000-000856a08086 | | | Serial Number: unknown | | | Core Clock Rate: 2400 MHz | | | Stepping: C0 | | | SKU Type: N/A | | | | | | Driver Version: I915_24.1.11_PSB_240117.14 | | | Kernel Version: 6.5.0-35-generic | | | GFX Firmware Name: GFX | | | GFX Firmware Version: unknown | | | GFX Firmware Status: normal | | | | | | PCI BDF Address: 0000:1a:00.0 | | | PCI Slot: N/A | | | PCIe Generation: -1 | | | PCIe Max Link Width: -1 | | | | | | Memory Physical Size: 256.00 MiB | | | Max Mem Alloc Size: 243.20 MiB | | | ECC State: N/A | | | Number of Memory Channels: 2 | | | Memory Bus Width: 128 | | | Max Hardware Contexts: 65536 | | | Max Command Queue Priority: 0 | | | | | | Number of EUs: 512 | | | Number of Tiles: 1 | | | Number of Slices: 1 | | | Number of Sub Slices per Slice: 32 | | | Number of Threads per EU: 8 | | | Physical EU SIMD Width: 8 | | | Number of Media Engines: 0 | | | Number of Media Enhancement Engines: 0 | | | | | | Number of Xe Link ports: N/A | | | Max Tx/Rx Speed per Xe Link port: N/A | | | Number of Lanes per Xe Link port: N/A | +-----------+--------------------------------------------------------------------------------------+ user@user:~$ xpu-smi discovery -d 1 +-----------+--------------------------------------------------------------------------------------+ | Device ID | Device Information | +-----------+--------------------------------------------------------------------------------------+ | 1 | Device Type: GPU | | | Device Name: Intel(R) Arc(TM) A770 Graphics | | | PCI Device ID: 0x56a0 | | | Vendor Name: Intel(R) Corporation | | | SOC UUID: 00000000-0000-008c-0000-000856a08086 | | | Serial Number: unknown | | | Core Clock Rate: 2400 MHz | | | Stepping: C0 | | | SKU Type: N/A | | | | | | Driver Version: I915_24.1.11_PSB_240117.14 | | | Kernel Version: 6.5.0-35-generic | | | GFX Firmware Name: GFX | | | GFX Firmware Version: unknown | | | GFX Firmware Status: normal | | | | | | PCI BDF Address: 0000:8c:00.0 | | | PCI Slot: N/A | | | PCIe Generation: -1 | | | PCIe Max Link Width: -1 | | | | | | Memory Physical Size: 256.00 MiB | | | Max Mem Alloc Size: 243.20 MiB | | | ECC State: N/A | | | Number of Memory Channels: 2 | | | Memory Bus Width: 128 | | | Max Hardware Contexts: 65536 | | | Max Command Queue Priority: 0 | | | | | | Number of EUs: 512 | | | Number of Tiles: 1 | | | Number of Slices: 1 | | | Number of Sub Slices per Slice: 32 | | | Number of Threads per EU: 8 | | | Physical EU SIMD Width: 8 | | | Number of Media Engines: 0 | | | Number of Media Enhancement Engines: 0 | | | | | | Number of Xe Link ports: N/A | | | Max Tx/Rx Speed per Xe Link port: N/A | | | Number of Lanes per Xe Link port: N/A | +-----------+--------------------------------------------------------------------------------------+ user@user:~$ user@user:~$ sudo xpu-smi stats -d 0 +-----------------------------+--------------------------------------------------------------------+ | Device ID | 0 | +-----------------------------+--------------------------------------------------------------------+ | GPU Utilization (%) | N/A | | EU Array Active (%) | N/A | | EU Array Stall (%) | N/A | | EU Array Idle (%) | N/A | | | | | Compute Engine Util (%) | N/A | | Render Engine Util (%) | N/A | | Media Engine Util (%) | N/A | | Decoder Engine Util (%) | N/A | | Encoder Engine Util (%) | N/A | | Copy Engine Util (%) | N/A | | Media EM Engine Util (%) | N/A | | 3D Engine Util (%) | N/A | +-----------------------------+--------------------------------------------------------------------+ | Reset | N/A | | Programming Errors | N/A | | Driver Errors | N/A | | Cache Errors Correctable | N/A | | Cache Errors Uncorrectable | N/A | | Mem Errors Correctable | N/A | | Mem Errors Uncorrectable | N/A | +-----------------------------+--------------------------------------------------------------------+ | GPU Power (W) | 38 | | GPU Frequency (MHz) | 300 | | Media Engine Freq (MHz) | N/A | | GPU Core Temperature (C) | 51 | | GPU Memory Temperature (C) | N/A | | GPU Memory Read (kB/s) | N/A | | GPU Memory Write (kB/s) | N/A | | GPU Memory Bandwidth (%) | N/A | | GPU Memory Used (MiB) | 31 | | GPU Memory Util (%) | 12 | | Xe Link Throughput (kB/s) | N/A | +-----------------------------+--------------------------------------------------------------------+ user@user:~$ sudo xpu-smi stats -d 1 +-----------------------------+--------------------------------------------------------------------+ | Device ID | 1 | +-----------------------------+--------------------------------------------------------------------+ | GPU Utilization (%) | N/A | | EU Array Active (%) | N/A | | EU Array Stall (%) | N/A | | EU Array Idle (%) | N/A | | | | | Compute Engine Util (%) | N/A | | Render Engine Util (%) | N/A | | Media Engine Util (%) | N/A | | Decoder Engine Util (%) | N/A | | Encoder Engine Util (%) | N/A | | Copy Engine Util (%) | N/A | | Media EM Engine Util (%) | N/A | | 3D Engine Util (%) | N/A | +-----------------------------+--------------------------------------------------------------------+ | Reset | N/A | | Programming Errors | N/A | | Driver Errors | N/A | | Cache Errors Correctable | N/A | | Cache Errors Uncorrectable | N/A | | Mem Errors Correctable | N/A | | Mem Errors Uncorrectable | N/A | +-----------------------------+--------------------------------------------------------------------+ | GPU Power (W) | 38 | | GPU Frequency (MHz) | 300 | | Media Engine Freq (MHz) | N/A | | GPU Core Temperature (C) | 53 | | GPU Memory Temperature (C) | N/A | | GPU Memory Read (kB/s) | N/A | | GPU Memory Write (kB/s) | N/A | | GPU Memory Bandwidth (%) | N/A | | GPU Memory Used (MiB) | 31 | | GPU Memory Util (%) | 12 | | Xe Link Throughput (kB/s) | N/A | +-----------------------------+--------------------------------------------------------------------+ user@user:~$