-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
[BugFix] Reordering extend logic fix #27739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BugFix] Reordering extend logic fix #27739
Conversation
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces important fixes to the batch reordering logic, correcting the definitions of 'extend' and 'prefill' requests and fixing how permutations are applied. The changes improve correctness. However, I've identified a more fundamental issue in the partitioning algorithm that could still lead to incorrect ordering in some scenarios. Additionally, a new test case appears to have an expected output that doesn't align with the implementation's logic, which could mask bugs. My review includes critical feedback on the partitioning algorithm and a high-severity comment on the test case discrepancy.
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]> Signed-off-by: Eldar Kurtic <[email protected]>
Fix incorrect definition of extends in #27367, more extensive unit tests, fix reordering bug when multiple swaps are involved + light refactor.
Credit to @ganyi1996ppo for finding the issue