You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current report API can only support retrieving reports from a single kernel. However, sometimes the generated code may implicitly or explicitly have multiple functions, which causes errors when displaying results.
An example is shown below. Since inter-kernel data placement is enabled, there will be a dataflow pragma generated on top of the HLS C code. The HLS tool may automatically extract subfunctions for those stages.
As a result, there are no "loops" in the top function, but only several function instances. (See below)
Results of the original loops will be in separate .rpt files like Loop_B.rpt, Loop_D.rpt, Loop_E.rpt, etc.
+ Detail:
* Instance:
+--------------------+-----------------+---------+---------+-----------+-----------+------+------+---------+
| | | Latency (cycles) | Latency (absolute) | Interval | Pipeline|
| Instance | Module | min | max | min | max | min | max | Type |
+--------------------+-----------------+---------+---------+-----------+-----------+------+------+---------+
|Loop_E_i_proc4_U0 |Loop_E_i_proc4 | 3137| 3137| 31.370 us | 31.370 us | 3137| 3137| none |
|Loop_B_i1_proc5_U0 |Loop_B_i1_proc5 | 3137| 3137| 31.370 us | 31.370 us | 3137| 3137| none |
|Loop_F_i3_proc7_U0 |Loop_F_i3_proc7 | 2113| 2113| 21.130 us | 21.130 us | 2113| 2113| none |
|Loop_D_i2_proc6_U0 |Loop_D_i2_proc6 | 2113| 2113| 21.130 us | 21.130 us | 2113| 2113| none |
+--------------------+-----------------+---------+---------+-----------+-----------+------+------+---------+
* Loop:
N/A
Thus, HeteroCL runs into an error since there are no loops available in the top .rpt file.
Traceback (most recent call last):
File "test_stages.py", line 41, in <module>
test_stages()
File "test_stages.py", line 36, in test_stages
report = mod.report()
File "/scratch/users/hc676/heterocl/python/heterocl/tvm/module.py", line 94, in report
return report_stats(target, self.name)
File "/scratch/users/hc676/heterocl/python/heterocl/report.py", line 470, in report_stats
return parse_xml(path, "Vivado HLS")
File "/scratch/users/hc676/heterocl/python/heterocl/report.py", line 456, in parse_xml
summary = perf_estimate["SummaryOfLoopLatency"]
KeyError: 'SummaryOfLoopLatency'
It would be great if we can summarize the results in different files and display them in a single table as we did for a single kernel.
If you are free, could you take a look at this? @yn224
Thanks!
The text was updated successfully, but these errors were encountered:
The current report API can only support retrieving reports from a single kernel. However, sometimes the generated code may implicitly or explicitly have multiple functions, which causes errors when displaying results.
An example is shown below. Since inter-kernel data placement is enabled, there will be a
dataflow
pragma generated on top of the HLS C code. The HLS tool may automatically extract subfunctions for those stages.As a result, there are no "loops" in the top function, but only several function instances. (See below)
Results of the original loops will be in separate
.rpt
files likeLoop_B.rpt
,Loop_D.rpt
,Loop_E.rpt
, etc.Thus, HeteroCL runs into an error since there are no loops available in the top
.rpt
file.It would be great if we can summarize the results in different files and display them in a single table as we did for a single kernel.
If you are free, could you take a look at this? @yn224
Thanks!
The text was updated successfully, but these errors were encountered: