Forum Discussion
HelloWorld - compiler error, not able to generate hardware
Hello,
Recently I bought the DE1-SoC Board for trying OpenCL with it. - I set up the environment variables like suggested in the "DE1SOC_OPENCL.pdf" - I have a valid licence. - I have downloaded the BSP for the Board After trying to compile a .cl -File (the vector_add example from the intel site) with the command: aoc device/vector_add.cl -o bin/vector_add.aocx --report --board de1soc_sharedonly I get the error: Compiler Error, not able to generate hardware. The .log file gave me following error-text: ... info (21057): implemented 12069 device resources after synthesis - the final resource count might be differentinfo (21058): implemented 13 input pins
info (21059): implemented 45 output pins
info (21060): implemented 57 bidirectional pins
info (21061): implemented 10410 logic cells
info (21064): implemented 1528 ram segments
info (21065): implemented 1 plls
info (21071): implemented 1 partitions
info: quartus prime analysis & synthesis was successful. 0 errors, 65 warnings
info: peak virtual memory: 1136 megabytes
info: processing ended: mon may 15 07:23:33 2017
info: elapsed time: 00:00:32
info: total cpu time (on all processors): 00:00:31
error (281039): finished parallel synthesis of 1 partition(s). 1 partitions did not finish parallel synthesis because there were errors
error (281040): partition "system_acl_iface_hps_hps_io_border:border" did not complete synthesis due to errors
info (144001): generated suppressed messages file /home/developer/workspace/opencl_intel_tutorial/opencl_example_vector_soc/vector_add/bin/vector_add/top.map.smsg
error: quartus prime analysis & synthesis was unsuccessful. 2 errors, 581 warnings
error: peak virtual memory: 1575 megabytes
error: processing ended: mon may 15 07:26:48 2017
error: elapsed time: 00:04:42
error: total cpu time (on all processors): 00:04:56
error (293001): quartus prime full compilation was unsuccessful. 4 errors, 581 warnings
error: flow compile (for project /home/developer/workspace/opencl_intel_tutorial/opencl_example_vector_soc/vector_add/bin/vector_add/top) was not successful
error: error: error(s) found while running an executable. see report file(s) for error message(s). message log indicates which executable was run last.
error (23031): evaluation of tcl script /home/developer/intelfpga_lite/16.1/quartus/common/tcl/internal/qsh_flow.tcl unsuccessful
error: quartus prime shell was unsuccessful. 11 errors, 581 warnings
error: peak virtual memory: 806 megabytes
error: processing ended: mon may 15 07:26:49 2017
error: elapsed time: 00:04:50
error: total cpu time (on all processors): 00:05:04 Google said that that "Error: Peak virtual memory: 806 megabytes" means that i´m using to much logic elements, but its just the vector-add example so I´m quite confused. I hope someone can point out whats the problem. Thanks :)
13 Replies
- Altera_Forum
Honored Contributor
Your compilation is failing during synthesis which is very strange. Please post the output of the following commands:
aoc --version quartus_map --version Also Terasic has two BSPs for this board. One is for Quartus v14.0, one is for v16.0. Which one are you using? P.S. OpenCL in Quartus v16.1.0 is broken. Make sure you are using v16.1.1 or v16.1.2. - Altera_Forum
Honored Contributor
Tanks for repliying
aoc --version: Intel(R) FPGA SDK for OpenCL(TM), 64-Bit Offline Compiler Version 16.1.2 Build 203 Copyright (C) 2017 Intel Corporation quartus_map --version:Quartus Prime Analysis & Synthesis Version 16.1.2 Build 203 01/18/2017 SJ Lite Edition Copyright (C) 2017 Intel Corporation. All rights reserved. I have installed the V16 BSP. I had Quartus v16.1.0 installed and updated it to Version 16.1.2.203 today. But i got "compiler error, not able to generate hardware" again. I have the Quartus Prime Lite edition. Could this be a problem? Since updating Quartus i´m not able to find the "quartus_sh_compile.log" do you know why this is the case? Thanks for your help :)
- Altera_Forum
Honored Contributor
That is strange. Have you tried removing the folder that is created by the OpenCL compiler? Do you get the "vector_add.log" file?
I have not used the Quartus Prime Lite edition myself, but if you have a valid Quartus license, it is probably best to use the Standard version. - Altera_Forum
Honored Contributor
Yes, I have removed the folder before compilation. I have added the complete log-file because i couldn´t figure out where the error message is.
Thanks for your help - Altera_Forum
Honored Contributor
I do not see any error messages in the log. Can you compress and post all of the OpenCL folder? You can remove non-log files if they are too big.
- Altera_Forum
Honored Contributor
I couldnt upload the OpenCL folder because it was to large so I put it on dropbox, i hope you are able to open the folder.
https://www.dropbox.com/s/qaumfdyuqopop91/opencl_example_vector_soc.zip?dl=0 - Altera_Forum
Honored Contributor
The "quartus_sh_compile.log" is actually inside the folder you uploaded. The final error message is the same as the one you posted earlier, but I found this in the log:
I am not sure if this problem is actually from your license or Quartus Prime Lite. the feature comparison table on altera's website (https://www.altera.com/products/design-software/fpga-design/quartus-prime/download.html) claims that only Quartus Prime Pro supports "Incremental Optimization", but you certainly shouldn't need the pro version for your board. My recommendation is installing Quartus Prime Standard v16.0.2 (not v16.1.2) for maximum compatibility with your BSP and trying again. If you still faced the same error, contact Altera or Terasic directly.Critical Warning (138067): Current license file does not support incremental compilation. The Quartus Prime software removes all the user-specified design partitions in the design automatically. - Altera_Forum
Honored Contributor
Installing Quartus Prime Standard edition (Version 16.1.2) and using OpenCL SDK Version 16.1.0 solved the problem.
Thanks for your help HRZ :) - Altera_Forum
Honored Contributor
That is good to hear, though I would strongly advise against using different versions of Quartus and AOC. For best experience, you should also install the 16.1.2 update for AOC.
- Altera_Forum
Honored Contributor
--- Quote Start --- Installing Quartus Prime Standard edition (Version 16.1.2) and using OpenCL SDK Version 16.1.0 solved the problem. Thanks for your help HRZ :) --- Quote End --- I have the same problem. I have following versions of openCL and Quartus. Should I update the version of OpenCL? Is there any command to update the OpenCL version? Intel(R) FPGA SDK for OpenCL(TM), 64-Bit Offline Compiler Version 16.1.0 Build 196 Copyright (C) 2016 Intel Corporation [krunal.patel@AOCLDev hello_world]$ 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.