Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16597 Discussions

Get error when compiling 'hello_world.cl'

Altera_Forum
Honored Contributor II
1,804 Views

when I use this command to compile an OpenCL kernel: 

c:\intelfpga_pro\16.1\hld\board\de5a_net_i2\tests\hello_world> aoc -v --board de5a_net_i2 .\device\hello_world.cl -o .\bin\hello_world.aocx --report 

I get output like this: 

aoc: environment checks are completed successfully. 

you are now compiling the full flow!! 

aoc: selected target board de5a_net_i2 

aoc: running opencl parser.... 

aoc: opencl parser completed successfully. 

aoc: compiling.... 

aoc: linking with ip library ... 

 

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

; estimated resource usage summary ; 

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

; resource + usage ; 

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

; logic utilization ; 19% ; 

; aluts ; 10% ; 

; dedicated logic registers ; 10% ; 

; memory blocks ; 10% ; 

; dsp blocks ; 5% ; 

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

aoc: first stage compilation completed successfully. 

error: peak virtual memory: 607 megabytes 

error: processing ended: tue sep 12 09:10:41 2017 

error: elapsed time: 00:00:32 

error: total cpu time (on all processors): 00:00:00 

error: ip-generate failed. 

refer to hello_world/hello_world.log for details. 

And there is my log file:https://alteraforum.com/forum/attachment.php?attachmentid=14114&stc=1  

https://alteraforum.com/forum/attachment.php?attachmentid=14114&stc=1  

 

how can i deal with it? 

Thanks!
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
474 Views

I recommend first updating both Quartus and AOC to v16.1.2 and trying again. If that didn't solve your problem, please attach the "quartus_sh_compile.log" file.

0 Kudos
Altera_Forum
Honored Contributor II
474 Views

 

--- Quote Start ---  

I recommend first updating both Quartus and AOC to v16.1.2 and trying again. If that didn't solve your problem, please attach the "quartus_sh_compile.log" file. 

--- Quote End ---  

 

 

Thanks a lot! I will try v17.0.
0 Kudos
Altera_Forum
Honored Contributor II
474 Views

 

--- Quote Start ---  

I recommend first updating both Quartus and AOC to v16.1.2 and trying again. If that didn't solve your problem, please attach the "quartus_sh_compile.log" file. 

--- Quote End ---  

 

 

If I want to try v16.1.2, should I download the UPDATE for v16.1? Because I can not find v16.1.2 at the download center. 

Thanks!
0 Kudos
Altera_Forum
Honored Contributor II
474 Views

 

--- Quote Start ---  

If I want to try v16.1.2, should I download the UPDATE for v16.1? Because I can not find v16.1.2 at the download center. 

Thanks! 

--- Quote End ---  

 

 

Yes, you should download the v16.1.2 update for both Quartus and AOC and install both. Do not use v17.0 since Terasic does not yet provide a BSP compatible with that version.
0 Kudos
Altera_Forum
Honored Contributor II
474 Views

Still get an error message: 

error: compiler error, not able to generate hardware 

Here is my quartus_sh_compile log file. 

https://www.alteraforum.com/forum/attachment.php?attachmentid=14116  

Thanks!!:-P
0 Kudos
Altera_Forum
Honored Contributor II
474 Views

Terasic has two BSPs, one for v16.0 and one for v16.1. Your log points to BSP incompatibility with Quartus. Make sure you are using the v16.1 BSP, and not v16.0. If you are using the v16.1 BSP, then you should contact Terasic and report the issue.

0 Kudos
Altera_Forum
Honored Contributor II
474 Views

Terasic---Doreen You use 16.1 BSP, please test it in 16.1 software. Please double check the environment variable Settings (do you add qsys\bin to PATH?)

0 Kudos
Altera_Forum
Honored Contributor II
474 Views

Hi, 

 

Always use the SDK version which is same with the BSP vendor version, and try not to cross matching different version for usage. 

 

 

Regards, 

CloseCL 

(This message was posted on behalf of Intel Corporation)
0 Kudos
Reply