forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GPU] Fix offsets calculation formula in MultiMmaOp distribution. (ir…
…ee-org#18055) It was ``` vtid: virtual thread id tid: lane id vtid = (tid floordiv stride_i) mod size_i ``` However, it does not take `element` into account. Each thread grabs `element` contiguous data, so the vtid needs to be multiplied by `element` to get the next bunch of data. I.e., it becomes ``` vtid: virtual thread id tid: lane id vtid = ((tid floordiv stride_i) mod size_i) * element_i ``` Fixes iree-org#17973 --------- Signed-off-by: hanhanW <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
8 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