Visible to Intel only — GUID: cgy1522340402284
Ixiasoft
6. Compiling OpenCL* Kernels
Before compiling an OpenCL* kernel, you must install the Intel® Acceleration Stack for Development.
- Set the user environment variable using one of the following commands:
source <DEV Install Path>/init_env.sh
- Ensure that the environment is setup with correct BSP using the following command:
aoc -list-boards
Example sample output:Board list: pac_s10_dc Board Package: /tools/<username>/dcp_2_0_1_PV_RC2/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bspBoard list:
- Compile an OpenCL Kernel to an aocx using commands similar to the following:
cd $OPAE_PLATFROM_ROOT/opencl/vector_add aoc device/vector_add.cl -o bin/vector_add.aocx -board pac_s10_dc
Related Information