forked from pytorch/FBGEMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce prefetch SM usage when using pipeline prefetching (pytorch#2991)
Summary: X-link: facebookresearch/FBGEMM#92 Pull Request resolved: pytorch#2991 This diff limits the SM usage on `masked_index_put` and `masked_index_get` when pipeline prefetching is used by using a small grid size. This is to reduce the interference of these kernels with the kernels on the compute stream during prefetch. The grid size is currently set to 1/8 of the total number of SMs. However, this number has to be tuned. Reviewed By: jianyuh Differential Revision: D61145930 fbshipit-source-id: 8f8096ba208b41dd537a582b9c539542cbc3ec82
- Loading branch information
1 parent
e73b1f8
commit 7a2ec83
Showing
4 changed files
with
101 additions
and
32 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
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