Home::   Utxcpp   utx::print   Logs

Intel dpcpp/cpp 2024 published

Intel dpcpp/cpp c++ sycl compiler 2024.0.0 (2024.0.0.20231017) published - Posted on Nov 20, 2023 - See - - Logs Home - d0002

dpcpp/cpp compiler

dpcpp/cpp compiler is a c++ compiler targeting c++ sycl GPU, FPGA programming by intel.

dpcpp/cpp 2024 Install Guid for Kubuntu Linux

Install c++ sycl dpcpp/cpp compiler for kubuntu linux.

Download dpcpp/cpp


choose which version you want to use.

For example, I am choosing intel dpc++/c++ for linux 2024.0.0 offline installer, ,

then download it.

Install dpcpp/cpp

Now execute the installer as root user:

$ su
# bash ./

The install prcocess will ask you some questions to continue while installing on terminal, just follow it.

Commonly, the packages will be installed to opt/intel/oneapi

Configure it

Configure it with, that's so easy.

Find where is

$ cd /opt/intel/oneapi
$ $ find . -name

Get the full path of the :

$ realpath ./

Now source it, to bash, csh or ksh :

$ su -
# echo ". /opt/intel/oneapi/" >> /etc/bash.bashrc
# echo ". /opt/intel/oneapi/" >> ~/.bashrc
$ exit
$ echo ". /opt/intel/oneapi/" >> ~/.bashrc

		# Please logout and login again.

Your dpcpp/cpp compiler for sycl is working :

$ dpcpp
$ dpcpp --version
$ dpcpp --help
$ which dpcpp
$ cd /opt/intel/oneapi/compiler/2024.0/bin/../include
$ ls
std  sycl  xpti
$ ls sycl

c++ sycl example code

the c++ code

#include <sycl/sycl.hpp>
#include <utxcpp/core.hpp>

int main()
	sycl::queue queue{sycl::gpu_selector_v};
	auto max_cu = queue.get_device().get_info<sycl::info::device::max_compute_units>();
	auto lm_size = queue.get_device().get_info<sycl::info::device::local_mem_size>();
	utx::print("max compute units:", max_cu, "local mem size:", lm_size);
catch (const sycl::exception & exc)
	utx::printe("sycl::exception:", exc.what());

Compile it

$ dpcpp prog.cpp -std=c++23 -o prog

See Also

Intel dpcpp/cpp download

Khronos sycl