Forum Discussion
Hello,
I got a confirmation regarding this. You can compile OpenCL kernel using latest intel SDK with older BSP version.
You need to set the environment to make everything works:
- Set environment variables to point the Quartus Prime version that was used to compile the BSP.
- Set the environment variables to point to the BSP directory.
- Set environment variables to point to the latest version of the Intel SDK for OpenCL.
- Run the Intel SDK for OpenCL initialization script.
- Compile the kernel.
- Run the design using the latest version of the Intel SDK for OpenCL or Intel RTE for OpenCL.
For example:
export QSYS_ROOTDIR=/IntelFPGA_pro/17.1/qsys/bin
export QUARTUS_ROOTDIR=/IntelFPGA_pro/17.1/quartus/bin
export QUARTUS_ROOTDIR_OVERRIDE=/IntelFPGA_pro/17.1/quartus/bin
export PATH="/IntelFPGA_pro/17.1/quartus/bin/:$PATH"
export PATH="/IntelFPGA_pro/17.1/qsys/bin:$PATH"
# A10 ref BSP version 17.1
export AOCL_BOARD_PACKAGE_ROOT=/IntelFPGA_pro/17.1/hld/board/a10_ref
export PATH="/IntelFPGA_pro/17.1/hld/board/a10_ref/ip/:$PATH"
# set OpenCL version 18.1
export ALTERAOCLSDKROOT=/IntelFPGA_pro/18.1/hld
export INTELFPGAOCLSDKROOT=/IntelFPGA_pro/18.1/hld
#run the OpenCL Setup script in 18.1
source /IntelFPGA_pro/18.1/hld/init_opencl.sh
Hope this might help