cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

Output out-of-date HLS reports when synthesis is executed several times #246

Closed chhzh123 closed 4 years ago

chhzh123 commented 4 years ago

The current f.report(target) function for Vivado HLS examines whether a profile.json file is in the project folder. If HeteroCL finds this file, it will directly load the data and output results. Otherwise, it re-generates the results from the xml file provided by HLS.

When new optimizations are applied to the schedule, and the program is synthesized again and again, HeteroCL still reads the old json file and outputs out-of-date results for users.

Delete these several lines, and enforce HeteroCL to re-generate HLS reports will solve the problem. https://github.com/cornell-zhang/heterocl/blob/58ea185af23e3d1ba8c91f1b9c378a2652a39cfd/python/heterocl/report.py#L32-L33