HKim27
Occasional Contributor
7 years agoPAC Arria 10 GX, aoc compilation error
Hi, all
I installed acceleration stack, followed guide to install bsp and setup environment variables.
"aocl diagnose" detects device well, and pre-compiled aocx examples run well.
But when I try to compile some OpenCL kernel examples, it prints the following error:
[heehoon@localhost vector_add]$ aoc device/vector_add.cl -o bin/vector_add.aocx --board pac_a10
Warning: Command has been deprecated. Please use -board=<value> instead of --board <value>
aoc: Running OpenCL parser....
/home/heehoon/exm_opencl_vector_add_x64_linux/vector_add/device/vector_add.cl:23:48: warning: declaring kernel argument with no 'restrict' may lead to low kernel performance
__kernel void vector_add(__global const float *x,
^
/home/heehoon/exm_opencl_vector_add_x64_linux/vector_add/device/vector_add.cl:24:48: warning: declaring kernel argument with no 'restrict' may lead to low kernel performance
__global const float *y,
^
2 warnings generated.
aoc: Optimizing and doing static analysis of code...
Compiling for FPGA. This process may take a long time, please be patient.
Error (16045): Instance "ccip_std_afu|bsp_logic_inst|board_inst" instantiates undefined entity "board" File: /home/heehoon/exm_opencl_vector_add_x64_linux/vector_add/bin/vector_add/build/bsp_logic.sv Line: 238
Error (16185): Can't elaborate user hierarchy "ccip_std_afu|bsp_logic_inst|board_inst" File: /home/heehoon/exm_opencl_vector_add_x64_linux/vector_add/bin/vector_add/build/bsp_logic.sv Line: 238
Error (16185): Can't elaborate user hierarchy "ccip_std_afu|bsp_logic_inst" File: /home/heehoon/exm_opencl_vector_add_x64_linux/vector_add/bin/vector_add/build/BBB_cci_mpf/hw/rtl/cci-mpf-if/cci_mpf_if.vh Line: 38
Error (16185): Can't elaborate user hierarchy "ccip_std_afu" File: /home/heehoon/exm_opencl_vector_add_x64_linux/vector_add/bin/vector_add/build/platform/green_bs.sv Line: 183
Error (16186): Can't elaborate top-level user hierarchy
Error: Flow failed:
Error: Quartus Prime Synthesis was unsuccessful. 6 errors, 129 warnings
Error (23031): Evaluation of Tcl script a10_partial_reconfig/flow.tcl unsuccessful
Error: Quartus Prime Shell was unsuccessful. 12 errors, 129 warnings
Error: Compiler Error, not able to generate hardwareDo somebody know why this error happens?
Thanks in advance.