Next I tried to compile the OpenCL kernel part of hello_world. This is what actually runs on the FPGA. Listed the boards supported, then used that as a paremeter to the compiler. Got an error. Stuck again (looks like a license issue):
Could not acquire a valid license for the Altera SDK for OpenCL.
Code:
C:\Users\Administrator\Documents\Visual Studio 2015\Projects\OpenCL\Altera\exm_opencl_hello_world_x64_windows_16.0\hello_world>aoc --list-boards
Board list:
c5soc
c5soc_sharedonly
C:\Users\Administrator\Documents\Visual Studio 2015\Projects\OpenCL\Altera\exm_opencl_hello_world_x64_windows_16.0\hello_world>aoc device\hello_world.cl -o bin\hello_world.aocx --board c5soc
Could not acquire a valid license for the Altera SDK for OpenCL.
Code:
Stack dump:
0. Program arguments: C:/altera_lite/16.0/hld/windows64/bin/aocl-clang -cc1 -O3 -emit-llvm-bc -DALTERA_CL -Wuninitialized -triple fpga64 -mllvm -board -mllvm c:/altera_lite/16.0/hld/board/c5soc/c5soc/board_spec.xml -DACL_BOARD_c5soc=1 -DAOCL_BOARD_c5soc=1 c:/Users/Administrator/Documents/Visual Studio 2015/Projects/OpenCL/Altera/exm_opencl_hello_world_x64_windows_16.0/hello_world/device/hello_world.cl -o c:/Users/Administrator/Documents/Visual Studio 2015/Projects/OpenCL/Altera/exm_opencl_hello_world_x64_windows_16.0/hello_world/bin/hello_world/hello_world.pre.bc
1. <built-in>:97:1: current parser token 'typedef'
Error: OpenCL parser FAILED.
Refer to hello_world/hello_world.log for details.
C:\Users\Administrator\Documents\Visual Studio 2015\Projects\OpenCL\Altera\exm_opencl_hello_world_x64_windows_16.0\hello_world>
Last edited:
Just my opinion..
