-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a zero layout for C in shared memory if beta=0 (#194)
While we already avoid a global load from C in case beta == 0, we still emit stores to shared memory and loads from shared memory for C. Instead, we should also use a zero layout for C in shared memory, which eliminates these extra loads and stores. This does not seem to influence the performance of GEMM, even for small matrices, or highly rectangular GEMMs with small K, but it does make a difference for some TCs, I've noticed, so let's do this, anyway.
- Loading branch information
1 parent
c98fa10
commit 4339926
Showing
3 changed files
with
20 additions
and
2 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