Linux NPU Driver v1.5.1
Validated on following configuration
Platform | System | Kernel | Firmware |
---|---|---|---|
Meteor Lake | Ubuntu22.04 | 6.5.0-41-generic | 20240611*MTL_CLIENT_SILICON-release*0003*ci_tag_ud202424_vpu_rc_20240611_0003*f3e8a8f2747 |
Ubuntu24.04 | 6.8.0-35-generic | 20240611*MTL_CLIENT_SILICON-release*0003*ci_tag_ud202424_vpu_rc_20240611_0003*f3e8a8f2747 |
|
Arrow Lake | Ubuntu22.04 | 6.8.12 | 20240611*MTL_CLIENT_SILICON-release*0003*ci_tag_ud202424_vpu_rc_20240611_0003*f3e8a8f2747 |
Ubuntu24.04 | 6.8.0-35-generic | 20240611*MTL_CLIENT_SILICON-release*0003*ci_tag_ud202424_vpu_rc_20240611_0003*f3e8a8f2747 |
|
Lunar Lake | Ubuntu22.04 | 6.8.12 | Jun 11 2024*LNL*ci_tag_ud202424_vpu_rc_20240611_0003*f3e8a8f27471d4127d8d92a8dc679b861ef43e43 |
Ubuntu24.04 | 6.8.12 | Jun 11 2024*LNL*ci_tag_ud202424_vpu_rc_20240611_0003*f3e8a8f27471d4127d8d92a8dc679b861ef43e43 |
Common:
Component | Version |
---|---|
Level Zero | v1.17.6 |
OpenVINO Archive Package | 2024.2.0 only in Ubuntu22.04 |
OpenVINO Python Package | 2024.2.0 only in Ubuntu24.04 |
OpenVINO built from source | OpenVINO 2024.2.0.dev20240513 |
NPU Compiler | npu_ud_2024_24_rc3 built using OpenVINO 2024.2.0.dev20240513 |
Installation procedure
- Remove old packages
dpkg --purge --force-remove-reinstreq intel-driver-compiler-npu intel-fw-npu intel-level-zero-npu
- Download all *.deb package
- Ubuntu22.04
wget https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-driver-compiler-npu_1.5.1.20240708-9842236399_ubuntu22.04_amd64.deb
wget https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-fw-npu_1.5.1.20240708-9842236399_ubuntu22.04_amd64.deb
wget https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-level-zero-npu_1.5.1.20240708-9842236399_ubuntu22.04_amd64.deb
- Ubuntu24.04
wget https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-driver-compiler-npu_1.5.1.20240708-9842236399_ubuntu24.04_amd64.deb
wget https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-fw-npu_1.5.1.20240708-9842236399_ubuntu24.04_amd64.deb
wget https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-level-zero-npu_1.5.1.20240708-9842236399_ubuntu24.04_amd64.deb
- Install libtbb12 which is a dependency for intel-driver-compiler-npu
sudo apt update
sudo apt install libtbb12
- Install all packages
sudo dpkg -i *.deb
- Install Level Zero if it is not in the system
# check if Level Zero is installed
dpkg -l level-zero
# download and install package if Level Zero is missing
wget https://github.com/oneapi-src/level-zero/releases/download/v1.17.6/level-zero_1.17.6+u22.04_amd64.deb
wget https://github.com/oneapi-src/level-zero/releases/download/v1.17.6/level-zero-devel_1.17.6+u22.04_amd64.deb
dpkg -i level-zero*.deb
- Reboot
reboot
# if everything works, we should see /dev/accel/accel0 device
ls /dev/accel/accel0
/dev/accel/accel0
# to receive intel_vpu state
dmesg
User access to the device
As a root user, this step can be skipped.
The new device /dev/accel/accel0
requires manual setting of permissions access.
The accel devices should be in the "render" group in Ubuntu:
# set the render group for accel device
sudo chown root:render /dev/accel/accel0
sudo chmod g+rw /dev/accel/accel0
# add user to the render group
sudo usermod -a -G render <user-name>
# user needs to restart the session to use the new group (log out and log in)
The above steps must be repeated each time module is reloaded or on every reboot.
To avoid manual setup of the group for accel device, the udev rules can be used:
sudo bash -c "echo 'SUBSYSTEM==\"accel\", KERNEL==\"accel*\", GROUP=\"render\", MODE=\"0660\"' > /etc/udev/rules.d/10-intel-vpu.rules"
sudo udevadm control --reload-rules
sudo udevadm trigger --subsystem-match=accel
Tip
In case of NPU is not visible, always check the access to the device with following command:
$ ls -lah /dev/accel/accel0
crw-rw---- 1 root render 261, 0 Mar 22 13:22 /dev/accel/accel0
If render
is missing, or crw-rw----
is not set, please repeat the steps to set the access to the device.
Important
For more information check README.md