编译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.

posted @ 2023-10-15 21:37  祥瑞哈哈哈  阅读(58)  评论(0编辑  收藏  举报