Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Problem with compilation of vector_add example

Hello everyone.

When running the command:

aoc device/vector_add.cl -o bin/vector_add.aocx --board de5a_net_e1 --report

I get the following message:

aoc: Selected target board de5a_net_e1

/home/vista_fpga/intelFPGA_pro/16.1/hld/board/de5a_net_e1/tests/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/vista_fpga/intelFPGA_pro/16.1/hld/board/de5a_net_e1/tests/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.

+--------------------------------------------------------------------+

; Estimated Resource Usage Summary ;

+----------------------------------------+---------------------------+

; Resource + Usage ;

+----------------------------------------+---------------------------+

; Logic utilization ; 19% ;

; ALUTs ; 10% ;

; Dedicated logic registers ; 10% ;

; Memory blocks ; 11% ;

; DSP blocks ; 5% ;

+----------------------------------------+---------------------------;

Error: Peak virtual memory: 871 megabytes

Error: Processing ended: Fri Nov 10 15:27:49 2017

Error: Elapsed time: 00:00:19

Error: Total CPU time (on all processors): 00:01:01

Error: ip-generate FAILED.

Refer to vector_add/vector_add.log for details.

In the vector_add.log file, the last lines are:

Info: Generating kernel_system.qsys:

Info: qsys-generate -syn --family="Arria 10" --part=10AX115N2F45E1SG kernel_system.qsys

------------------------------------------------

while executing

"qexec "qsys-archive --quartus-project=$project_name --rev=opencl_bsp_ip kernel_system.qsys""

(file "scripts/pre_flow_pr.tcl" line 134)

------------------------------------------------

Error (23031): Evaluation of Tcl script scripts/pre_flow_pr.tcl unsuccessful

Error: Quartus Prime Shell was unsuccessful. 1 error, 0 warnings

Error: Peak virtual memory: 871 megabytes

Error: Processing ended: Fri Nov 10 15:27:49 2017

Error: Elapsed time: 00:00:19

Error: Total CPU time (on all processors): 00:01:01

My OS is Centos 7.

Regards,

Lancer

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi HRZ,

    Shifting to v16.0 did solve the problem. Thank you!

    Ill contact Terasic and report them the bug.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Need to take note that BSP version are specific to SDK version as well.

    Regards,

    CloseCL

    (This message was posted on behalf of Intel Corporation)