cornell-zhang/heterocl

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

Closed this issue · 0 comments

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.

if os.path.isfile(json_file):
profile = json.loads(open(json_file,"r").read())