Intel® FPGA Software Installation & Licensing
Installation and Licensing that’s includes Intel Quartus® Prime software, ModelSim* - Intel FPGA Edition software, Nios® II Embedded Design Suite on Windows or Linux operating systems.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
1345 Discussions

Error compiling hello_world.cl with aoc

gbarc2
Beginner
6,022 Views

I recently installed the Intel OpenCL SDK toolchain for FPGA on a Linux system by following the guide provided here https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_getting_started.pdf.

Since our board is an Intel PAC with Arria 10 GX, I also installed the Custom Platform for the board.

 

Running

 

aoc -version

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

Version 17.1.1 Build 273

Copyright (C) 2017 Intel Corporation

 

quartus_map --version

Quartus Prime Analysis & Synthesis

Version 17.1.1 Build 273 12/19/2017 Patches 1.02dcp,1.36,1.38 SJ Pro Edition

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

 

therefore aoc and Quartus are installed. I also ran "aocl diagnose" and it correctly passed the diagnostic for the board.

 

Then compiling the hello_world.cl kernel in emulation mode

 

aoc -v -march=emulator -board=pac_a10 hello_world.cl

 

worked without any problem (also at runtime the binary worked).

 

However, running

 

aoc -v -board=pac_a10  hello_world.cl

c: Environment checks are completed successfully.

aoc: Cached files in /var/tmp/aocl/ may be used to reduce compilation time

You are now compiling the full flow!!

aoc: Selected target board pac_a10

aoc: Running OpenCL parser....

aoc: OpenCL parser completed successfully.

aoc: Optimizing and doing static analysis of code...

aoc: Linking with IP library ...

Checking if memory usage is larger than 100%

aoc: First stage compilation completed successfully.

Compiling for FPGA. This process may take a long time, please be patient.

Error: Compiler Error, not able to generate hardware

 

Therefore, I looked at hello_world.log (see attached) and there is no indication of why the compilation failed.

 

Then, I looked at quartus_sh_compile.log and the only line reported is

 

ERROR: packager tool failed to run. Check installation. Aborting compilation!

 

Could you please help us understand where the issue may be?

 

Many thanks.

 

 

 

 

 

0 Kudos
21 Replies
KhaiChein_Y_Intel
721 Views

Hi Simon,

 

This thread is closed since May 2019. Could you open a new forum thread?

 

Thanks.

0 Kudos
Reply