编译opencl代码
icpx -fsycl opencl.cpp -lOpenCL -o opencl
SYCL是OpenCL的高级编程模型
Compiling and Running on a Local System:
If you have installed the Intel® oneAPI Base Toolkit on your local system, you can use the commands below to compile and run a SYCL program:
source /opt/intel/inteloneapi/setvars.sh
icpx -fsycl simple.cpp -o simple
./simple
Note: run.sh script is a combination of the three steps listec above.