-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transpose Scheduler: Ignore reduction axis in merge (#2326)
Issue #2317. The issue arises in the following lines for reference 1: `[I0, I1, I2, r3]`: After tiling: ``` reference1->split(inner_most_pos1_in_ref1, params.tile_size1); reference1->reorder({{inner_most_pos1_in_ref1 + 1, -1}}); reference1->split(inner_most_pos2_in_ref1, params.tile_size2); reference1->reorder({{inner_most_pos2_in_ref1 + 1, -1}}); ``` Reference 1 is: [I0, I1/tile1, I2/tile2, r3, tile1, tile2] ``` // Merge remaining dimensions int64_t lhs_i = -1; for (int64_t i = reference1->nDims() - 2; i > 0; i--) { auto axis_i = i - 1; if (lhs_i == -1) { lhs_i = axis_i; } else { reference1->merge(axis_i, lhs_i); lhs_i = axis_i; } ``` This tries to merge a reduction iterdomain with iteration type iterdomain. This PR ignored the reduction axis when merging all non-tile dimensions.
- Loading branch information
Showing
2 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters