-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor MultiMatmulSchedulers (#3277)
The PR fixes #3266. * Future consolidation is possible but I kept some duplicate functions in `HopperMultiMatrixScheduler` and `AmpereMultiMatrixScheduler` for flexibility. ### Changes: - Move `isPowOf2` to `csrc/utils.h` - Move `representativeId` to `scheduler/tools/abstract_tensor.h` - Move `checkConcreteStaticDim to mma_utils.cpp` - Add TODO to remove `swizzleSharedMemory` from `HopperMultiMatrixScheduler` - Create base class `MultiMatrixScheduler` to hold common functions like `findPatterns` ### Details: - Create base class `MultiMatrixScheduler` - `HopperMultiMatrixScheduler` and `AmpereMultiMatrixScheduler` inherit from `MultiMatrixScheduler` and overwrite the `run` function. - `MultiMatrixScheduler` implements `findPatterns`, `translatePatterns`, `findRoles`, `countDims`, and `updateIdModel`. It also holds the necessary data members for those functions.
- Loading branch information
Showing
9 changed files
with
194 additions
and
450 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
Oops, something went wrong.