Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

https://github.com/intel/intel-graphics-compiler/blob/master/documentation/build_ubuntu.md

https://github.com/intel/intel-graphics-compiler/blob/master/documentation/build_ubuntu.md#Revision-table

https://github.com/intel/opencl-clang

Make compilation faster

Code Block
apt install -y devmem2 msr-tools
cd /root
wget https://raw.githubusercontent.com/horshack-dpreview/setPL/master/setPL.sh
chmod +x ./setPL.sh
mv setPL.sh /usr/local/sbin
ln -s /usr/local/sbin/setPL.sh /root/setPL.sh # just a habbit to run it from root

...

Code Block
apt remove -y intel-gpu-tools intel-media-va-driver-non-free intel-ocloc-legacy intel-ocloc intel-opencl-icd-legacy intel-opencl-icd libze-intel-gpu-raytracing
apt install -y peg bison flex libcairo2-dev libudev-dev libprocess-cpp-dev libunwind-dev valgrind libpixman-1-dev libdw-dev libproc2-dev libkmod-dev libdrm-intel1 libdrm-dev meson cmake
git clone https://github.com/intel/gmmlib.git
cd gmmlib/
mkdir build
cd build
cmake ../
make -j 4
make install
cd ../..
  
git clone https://github.com/intel/libva.git
cd libva
mkdir build 
cd build 
meson .. -Dprefix=/usr -Dlibdir=/usr/lib/x86_64-linux-gnu
ninja
sudo ninja install
  cd ../..
  
git clone https://github.com/intel/libva-utils.git
cd libva-utils
mkdir build
cd build
meson ..
ninja
sudo ninja install
  cd ../..
  
git clone https://github.com/intel/media-driver.git
cd media-driver/
mkdir build
cd build
cmake ../
make -j 4
make install
cd ../..
  
# Intel_gpu_tools compilation is optional
apt install -y peg bison flex libcairo2-dev libudev-dev libprocess-cpp-dev libunwind-dev valgrind libpixman-1-dev libdw-dev libproc2-dev libkmod-dev
git clone https://gitlab.freedesktop.org/drm/igt-gpu-tools
cd igt-gpu-tools
meson build && ninja -C build
./meson.sh install
cd ..

...

Code Block
root@morefine-s800:~/neo# clinfo -l
Platform #0: Intel(R) OpenCL Graphics
 `-- Device #0: Intel(R) Arc(TM) Graphics


Intel OpenVINO

Code Block
# OpenVino
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
echo "deb https://apt.repos.intel.com/openvino/2025 ubuntu24 main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2025.list
apt update
apt-cache search openvino
apt install openvino
python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py


Intel NPU driver

Code Block
mkdir intel-npu-driver
cd intel-npu-driver
dpkg --purge --force-remove-reinstreq intel-driver-compiler-npu intel-fw-npu intel-level-zero-npu
wget https://github.com/intel/linux-npu-driver/releases/download/v1.17.0/intel-driver-compiler-npu_1.17.0.20250508-14912879441_ubuntu24.04_amd64.deb
wget https://github.com/intel/linux-npu-driver/releases/download/v1.17.0/intel-fw-npu_1.17.0.20250508-14912879441_ubuntu24.04_amd64.deb
wget https://github.com/intel/linux-npu-driver/releases/download/v1.17.0/intel-level-zero-npu_1.17.0.20250508-14912879441_ubuntu24.04_amd64.deb
dpkg -i *.deb
# dpkg -l level-zero
wget https://github.com/oneapi-src/level-zero/releases/download/v1.21.9/level-zero_1.21.9+u24.04_amd64.deb
sudo dpkg -i level-zero*.deb
cd ..
Code Block
python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py |grep FULL_DEVICE_NAME:


Code Block
root@morefine-s800:~# python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py |grep FULL_DEVICE_NAME:
[ INFO ]                FULL_DEVICE_NAME: Intel(R) Core(TM) Ultra 9 185H
[ INFO ]                FULL_DEVICE_NAME: Intel(R) Arc(TM) Graphics (iGPU)
[ INFO ]                FULL_DEVICE_NAME: Intel(R) AI Boost


Intel libVPL

Code Block
git clone https://github.com/intel/libvpl
cd libvpl
export VPL_INSTALL_DIR=`pwd`/../_vplinstall
sudo script/bootstrap
cmake -B _build -DCMAKE_INSTALL_PREFIX=$VPL_INSTALL_DIR
cmake --build _build
cmake --install _build