-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix MX4 Illegal Memory Access for Large Inputs (#3229)
Summary: X-link: facebookresearch/FBGEMM#327 This diff adds handling for very large input tensors to fbgemm's mx4 routines. By default, triton uses int32 indexing which can overflow if the number of elements in an input exceeds the expressible limit of int32. We add a simple check to see if int64 indexing is needed to prevent this failure mode. Notably, using int64 indexing does hurt performance a bit so this diff avoids using it if not necessary. Reviewed By: qchip Differential Revision: D63992362
- Loading branch information
1 parent
e7f89e4
commit 40e4c59
Showing
2 changed files
with
28 additions
and
0 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