Closed chhzh123 closed 3 years ago
The first check means that we do not allow two stages to have the same name. If you can rename the second partition with a unique name, it should pass the first check.
The first check means that we do not allow two stages to have the same name. If you can rename the second partition with a unique name, it should pass the first check.
I think in this case we only have one stage named B
? And we do not provide APIs to name the partitions.
We do not have a way two apply partition twice right now.
It should be an easy fix though.
Wait, I think we can partition twice. It's just that the dataflow analysis need to improve. @Hecmay, you can take a look into this and just ignore the repeated partition stages.
Or maybe I can just name them differently. Either way should work.
@chhzh123 can you try this branch? https://github.com/seanlatias/heterocl/tree/loopcount
I also removed the loopcount=1 logic.
@chhzh123 @seanlatias Fixed by adding stage renaming. I used Hongzheng's code as the recession test case. Please see the test_issue_273.py
.
Issues fixed already. Test cases added here: https://github.com/cornell-zhang/heterocl/blob/heteroflow/tests/issues/test_issue_273.py
It's unable to partition the same array along different dimensions.
Got the following error.
If I change the partition commands to
I obtain a wrong piece of code.