-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up aggregation update using shmem (#10114)
Summary: Pull Request resolved: #10114 For cases where we might have enough memory in shmem, we can do faster agg update. This is 0.97-3.5x faster than thread unsafe `sum1NoSync` version on H100. Algo: Within a warp, do atomicAdd within shmem first, and then do atomicAdd in global memory. Also added a test case with only 1 distinct element(and commented out extremely slow sum1Order as it takes forever to run) Reviewed By: Yuhta Differential Revision: D58296793 fbshipit-source-id: 51a5d4cb8e1aab76fe7d21406b3aab03c902e39f
- Loading branch information
1 parent
20069f9
commit c622f91
Showing
4 changed files
with
68 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
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