- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I want to test the OpenCL driver on pac_a10 board, but when I run the sample code, I meet a problems:
aoc: 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: Linking Object files....
aoc: Optimizing and doing static analysis of code...
aoc: Linking with IP library ...
Checking if memory usage is larger than 100%
Compiler Warning: addpipe in board_spec.xml is set to 1 which is no longer supported
Compiler Warning: global memory pipeline stage is now implemented in BSP instead
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
And the "quartus_sh_compile.log" just has one line:
ERROR: packager tool failed to run. Check installation. Aborting compilation!
I don't get the licence of Quartus Pro yet. Do the test need that? If not, what cause that error? "Check installation" means check the Quartus installation or the BSP?
Thanks in advance.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi WWang76,
Could you share the bin/hello_world/quartus_sh_compile.log or hello_world.log file?
May I know which version you are using?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kyeoh,
There is the "hello_world.log" file, and the he "quartus_sh_compile.log" just has one line:
ERROR: packager tool failed to run. Check installation. Aborting compilation!
I tried:
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.
and
aocl 17.1.1.273 (Intel(R) FPGA SDK for OpenCL(TM), Version 17.1.1 Build 273, Copyright (C) 2017 Intel Corporation)
I also tried the version 18.1(both). but nothing changed.
the version of BSP is a10_gx_pac_ias_1_2_pv
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi WWang76,
Have you try with the license?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi YY,
Sorry for late response, I did not try license yet. But I installed all required Linux packages. I just want to know whether I need a licence or not in this develop situation. After all, the licence is not cheap. So, there is any document about the license requirement to this problem?
Regards,
Wei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi WWang76,
May I know what OS you are using? Can you try the suggestion in https://forums.intel.com/s/question/0D50P00004DD90l/error-compiling-helloworldcl-with-aoc?fromCase=1?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I test it on the Ubuntu 18.04 and 16.04.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi YY,
Thank you a lot.
Is that meaning if I fix the error, I still need to have a full license to run aoc command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys, the real reason is the python version.
It looks like the python scripts must run in python version 2.7.5
You can verify that by running the following line in the directory of the A10 BSP where packager.pyz is stored (somewhere in opencl...)
>python packager.pyz
You will see that it fails with some versions of python.
The solution is to install python 2.7.5.
Read https://askubuntu.com/questions/1050084/install-python-2-7-6-in-ubuntu-16-04
and use the method with version 2.7.5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi DCast14,
This worked for us.
In our case we are using CentOS 7 with many versions of Python and `/usr/bin/python` was pointing to `/usr/bin/python3`.
We relinked `/usr/bin/python` to `/usr/bin/python2` and it looks like the issue is fixed.
Thanks for posting the solution!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi David.Castells,
Thank for your reply, I tried to run
$python packager.pyz
and get results:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "packager.pyz/__main__.py", line 28, in <module>
File "packager.pyz/packager.py", line 35, in <module>
File "packager.pyz/afu.py", line 52, in <module>
File "packager.pyz/jsonschema-2.3.0/jsonschema/__init__.py", line 18, in <module>
File "packager.pyz/jsonschema-2.3.0/jsonschema/validators.py", line 161, in <module>
File "packager.pyz/jsonschema-2.3.0/jsonschema/_utils.py", line 61, in load_schema
IOError: [Errno 20] Not a directory: u'/opt/inteldevstack/a10_gx_pac_ias_1_2_pv/opencl/opencl_bsp/hardware/pac_a10/build/tools/packager.pyz/jsonschema-2.3.0/jsonschema/schemas/draft3.json'
May I ask what is that the last line meaning?
It seems to point a wrong path. I thought it may be related to OPAE, but I am not sure.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi WWang76 ,
Can you try DCast14's suggestion?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi WWang76,
It seems like you see similar error in
https://forums.intel.com/s/question/0D70P000006G4HL/error-compiling-helloworldcl-with-aoc?s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&emkind=chatterCommentNotification&s1uid=0050P000008IfXG&emtm=1554193950089&fromEmail=1&s1ext=0
Can you try the workaround suggested in this thread?
sudo apt-get install python-jsonschema
Referring to
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/po/ss-quartus-comparison.pdf
, Intel FPGA SDK for OpenCL requires no additional licenses. It is supported with the Intel Quartus Prime Pro/Standard Edition software and the Pro/Standard edition software require license.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi YY,
Thanks for locating this problem. Finally, I find this problem caused by lacking the json library in python. Thanks a million.
However, there was another problem:
Error (213009): File name "output_files/afu_fit.green_region.pmsf" does not exist or can't be read
Error: Quartus Prime Convert_programming_file was unsuccessful. 1 error, 0 warnings
Error (23031): Evaluation of Tcl script a10_partial_reconfig/flow.tcl unsuccessful
Error: Quartus Prime Shell was unsuccessful. 7 errors, 3314 warnings
Error: Compiler Error, not able to generate hardware
in "quartus_sh_compile.log", it shows:
Info: Command: quartus_cpf -c output_files/afu_fit.green_region.pmsf output_files/afu_fit.green_region.rbf
Info: Using INI file /home/wei/test_file/exm_opencl_hello_world_x64_linux/hello_world/bin/hello_world/build/quartus.ini
Error (213009): File name "output_files/afu_fit.green_region.pmsf" does not exist or can't be read
Error: Quartus Prime Convert_programming_file was unsuccessful. 1 error, 0 warnings
Error: Peak virtual memory: 401 megabytes
Error: Processing ended: Fri Jun 21 05:58:45 2019
Error: Elapsed time: 00:00:00
Error: Total CPU time (on all processors): 00:00:00
Error (23031): Evaluation of Tcl script a10_partial_reconfig/flow.tcl unsuccessful
Error: Quartus Prime Shell was unsuccessful. 7 errors, 3314 warnings
Error: Peak virtual memory: 702 megabytes
Error: Processing ended: Fri Jun 21 05:58:46 2019
Error: Elapsed time: 00:34:15
Error: Total CPU time (on all processors): 03:01:48
ERROR: pll timing script failed.
Do you have any advise about that?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi YY,
NO. In fact I saw a very similar file, it is "dcp.green_region.pmsf".
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page