Closed hecmay closed 3 years ago
Added a fix that should eliminate most of the subgraph related bugs -- Whenever the algorithm fails to extract the subgraph, it rolls back and offload the whole function body to the FPGA device.
This is fixed already. When the output does not depend on the inputs (this kind of behavior does not make much sense, but it is still valid), the algorithm will throw out a critical warning, but keep generating the HLS code.
Test cases: https://github.com/cornell-zhang/heterocl/blob/heteroflow/tests/issues/test_issue_274.py
I just checked Alex's code. The root cause is that the graph partitioning algorithm assumes there is a path from input nodes to output nodes in the DFG. But this is not always true.
The minimum test case to produce the error. In this program, the output does not depend on inputs.