This repo contains Debian package definitions for components from the oneAPI Base Toolkit published to the following PPA:
The latest packages are built for and validated against Ubuntu 26.04 (Resolute Raccoon).
- Enable Intel GPU support
- Add the PPA to apt sources
- Install packages from the PPA
- Build and run SYCL* applications
To run SYCL* applications with Intel GPU support, ensure you have permissions to the device by adding yourself to the render Unix group:
sudo usermod -a -G render $USERYou need to log out and log back for this change to take effect.
sudo add-apt-repository ppa:kobuk-team/oneapi-release
sudo apt updatesudo apt install clang-dpcpp-21sudo apt install onedpl-headerssudo apt install libdnnl-sycl3Applications written in SYCL* C++ can be compiled using the clang++-dpcpp command. For example:
clang++-dpcpp -fsycl sample.cpp -o simple-sycl-app
./simple-sycl-appFirst make sure to install all the required development packages:
sudo apt install libdnnl-sycl-dev libtbb-dev ocl-icd-opencl-dev libsycl-dev libclang-dpcpp-common-21-devNow pass the library names in your compile command, for example:
clang++-dpcpp -fsycl -ldnnl-sycl -lOpenCL -ltbb sample.cpp -o sample-onednn-sycl-app
./simple-onednn-sycl-appThere are also examples available from the onednn-examples binary package:
sudo apt install onednn-examples
cp /usr/lib/onednn/examples/getting_started.cpp .
clang++dpcpp -fsycl -I /usr/lib/onednn/examples -ldnnl-sycl -lOpenCL -ltbb getting_started.cpp -o getting-started
./getting-started gpu