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

Hello World opencl design example for Arria 10

Altera_Forum
Honored Contributor II
2,025 Views

I have been trying to compile hello_world example for Arria 10 device. For that I have downloaded Quartus Prime Pro and OpenCL SDK on my Centos but I am getting error while compiling the example. a10gx is listed in aoc --list-boards.  

I am using following command to compile hello_world example. 

 

--- Quote Start ---  

aoc device/hello_world.cl -o bin/hello_world.aocx --report --board a10gx 

--- Quote End ---  

 

 

I am getting following error. 

 

--- Quote Start ---  

[nilesh.vora@AOCLDev hello_world]$ aoc device/hello_world.cl -o bin/hello_world.aocx --report --board a10gx -v 

aoc: Environment checks are completed successfully. 

You are now compiling the full flow!! 

aoc: Selected target board a10gx 

aoc: Running OpenCL parser.... 

aoc: OpenCL parser completed successfully. 

aoc: Compiling.... 

aoc: Linking with IP library ... 

 

 

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

; Estimated Resource Usage Summary ; 

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

; Resource + Usage ; 

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

; Logic utilization ; 17% ; 

; ALUTs ; 9% ; 

; Dedicated logic registers ; 9% ; 

; Memory blocks ; 15% ; 

; DSP blocks ; 0% ; 

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

aoc: First stage compilation completed successfully. 

Error: Compiler Error, not able to generate hardware 

 

 

 

--- Quote End ---  

 

 

Strange part is that log file does not indicate any error. See attached log file. 

 

Please look at the version of OpenCL and Quartus. 

 

--- Quote Start ---  

[nilesh.vora@AOCLDev ~]$ aoc --version 

Intel(R) FPGA SDK for OpenCL(TM), 64-Bit Offline Compiler 

Version 16.1.2 Build 203 

Copyright (C) 2017 Intel Corporation 

[nilesh.vora@AOCLDev ~]$ quartus_map --version 

Quartus Prime Analysis & Synthesis 

Version 16.1.2 Build 203 01/18/2017 SJ Standard Edition 

Copyright (C) 2017 Intel Corporation. All rights reserved. 

 

--- Quote End ---  

0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
763 Views

You seem to have some issue in your environmental variables. The output of "quartus_map --version" is pointing to Quartus Prime Standard Edition, while for Arria 10 you should use the Pro Edition. The info in your log, however, is pointing to Quartus Prime Pro Edition v16.1.0, which should be updated to v16.1.2. Update your environmental variables so that both AOC and Quartus point to the Pro Edition, and make sure they are both updated to v16.1.2, then retry the compilation. If it still didn't work, please post the "quartus_sh_compile.log" file.

0 Kudos
Altera_Forum
Honored Contributor II
763 Views

I have updated Quartus Prime Pro to 16.1.2. See the console output below. 

 

--- Quote Start ---  

 

[krunal.patel@AOCLDev hello_world]$ aoc --version 

Intel(R) FPGA SDK for OpenCL(TM), 64-Bit Offline Compiler 

Version 16.1.2 Build 203 

Copyright (C) 2017 Intel Corporation 

[krunal.patel@AOCLDev hello_world]$ quartus_map --version 

Quartus Prime Analysis & Synthesis 

Version 16.1.2 Build 203 01/18/2017 SJ Pro Edition 

Copyright (C) 2017 Intel Corporation. All rights reserved. 

--- Quote End ---  

 

 

But I am getting the same error. There is no error in log file. Is there any other things that I am missing. I just downloaded hello_world example from design examples and started compiling it on CentOS. See the attached log file. I still have Quartus standard 16.1.0 installed on other directory but I have updated PATHs to the Prime pro 16.1.2 for compilation of OpenCL example for Arria 10.
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

 

--- Quote Start ---  

You seem to have some issue in your environmental variables. The output of "quartus_map --version" is pointing to Quartus Prime Standard Edition, while for Arria 10 you should use the Pro Edition. The info in your log, however, is pointing to Quartus Prime Pro Edition v16.1.0, which should be updated to v16.1.2. Update your environmental variables so that both AOC and Quartus point to the Pro Edition, and make sure they are both updated to v16.1.2, then retry the compilation. If it still didn't work, please post the "quartus_sh_compile.log" file. 

--- Quote End ---  

 

Still not working.
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

Then post the "quartus_sh_compile.log" file.

0 Kudos
Altera_Forum
Honored Contributor II
763 Views

 

--- Quote Start ---  

Then post the "quartus_sh_compile.log" file. 

--- Quote End ---  

 

I have attached both, quartus_sh_compile.txt and hello_world.txt.
0 Kudos
Altera_Forum
Honored Contributor II
763 Views

I do not see anything out of the ordinary in the logs, it is just randomly failing for no reason. You can try creating an account on Altera.com and opening a support request and asking Altera directly. 

 

P.S. Make sure you are using a supported OS.
0 Kudos
Reply