Open signorgelato opened 5 years ago
Hello,
I just tried reproducing this problem with the same setup (Vivado 2017.2 and hls4ml v0.1.4), but I see different behavior. Everything runs okay until exporting the IP, where it then reports an error about not finding the part number. I wonder if this is a problem with my license?
INFO: [RTGEN 206-100] Finished creating RTL model for 'myproject'.
INFO: [HLS 200-111] Elapsed time: 1.65 seconds; current allocated memory: 1.782 GB.
INFO: [RTMG 210-279] Implementing memory 'softmax_exp_table5_rom' using block ROMs.
INFO: [RTMG 210-279] Implementing memory 'softmax_invert_tabkb_rom' using block ROMs.
INFO: [HLS 200-111] Finished generating all RTL models Time (s): cpu = 00:02:28 ; elapsed = 00:02:24 . Memory (MB): peak = 2439.680 ; gain = 2013.992 ; free physical = 9245 ; free virtual = 166244
INFO: [SYSC 207-301] Generating SystemC RTL for myproject.
INFO: [VHDL 208-304] Generating VHDL RTL for myproject.
INFO: [VLOG 209-307] Generating Verilog RTL for myproject.
...
INFO: [COSIM 212-1000] *** C/RTL co-simulation finished: PASS ***
INFO: [COSIM 212-211] II is measurable only when transaction number is greater than 1 in RTL simulation. Otherwise, they will be marked as all NA. If user wants to calculate them, please make sure there are at least 2 transactions in RTL simulation.
INFO: [IMPL 213-8] Exporting RTL as an IP in IP-XACT.
...
INFO: [Common 17-206] Exiting Vivado at Sat Mar 2 12:34:02 2019...
ERROR: [Coretcl 2-106] Specified part could not be found.
INFO: [HLS 200-112] Total elapsed time: 210.09 seconds; peak allocated memory: 1.782 GB.
If I run with the default part number in hls4ml (xcku115-flvb2104-2-i), everything runs ok. Is anyone else able to reproduce the 1024 threshold error?
@benjaminkreis Recently, I have gotten it to run after I go inside <OutputDir>/firmware/parameters.h
and change the parameters, in particular, just N_FILT_1
from 2 to 1. So how does this make sense? Maybe this is just specific to Vivado 2017.2 see Xilinx forum post and our FPGA.
@jmduarte We are trying to synthesize the example Conv2D model from hls4ml v0.1.4 in Vivado HLS 2017.2 for a different FPGA (xczu9eg-ffvb1156-2-i-es2) but we run into some memory issue. Here is the `keras-config.yml:
and the command:
We run into this error:
Is this only a memory issue? It seems like that there is a threshold of 1024 elements in Vivado 2017.2. How do we get around this limit?