This is a demonstration of the previously explained code. We need to source either oneAPI from our system (usual path : /opt/intel/oneapi/setvars.sh) or source DPC++ compiler from our system (source /opt/intel/oneapi/compiler/latest/env/vars.sh). For compiling the code we need to use “dpcpp vector_add.cpp -o vect_add”. For running the executable, run “./vect_add”
![](https://blog.tyronesystems.com/wp-content/uploads/2021/02/Intel-oneapi-720x320-banner-01.jpg)