mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-27 03:01:52 -04:00
Disable WMMA dot transformation
Enabled only in lit test. Revert after complete enabling WMMA Signed-off-by: joviliast <iveselov.nn@gmail.com>
This commit is contained in:
@@ -398,9 +398,11 @@ class TritonAMDGPUAccelerateMatmulPass
|
||||
public:
|
||||
TritonAMDGPUAccelerateMatmulPass() = default;
|
||||
TritonAMDGPUAccelerateMatmulPass(StringRef archGen,
|
||||
int matrixInstructionSize) {
|
||||
int matrixInstructionSize,
|
||||
bool enableWmmaTransform) {
|
||||
this->archGenerationName = archGen.data();
|
||||
this->matrixInstructionSize = matrixInstructionSize;
|
||||
this->enableWmmaTransform = enableWmmaTransform;
|
||||
}
|
||||
void runOnOperation() override {
|
||||
MLIRContext *context = &getContext();
|
||||
@@ -413,9 +415,9 @@ public:
|
||||
MatrixCoreVersion::CDNA_MFMA3 == matrixCoreVer) {
|
||||
patterns.add<::BlockedToMFMA>(context, getMfmaVersion(matrixCoreVer),
|
||||
matrixInstructionSize);
|
||||
} /*else if (matrixCoreVer == MatrixCoreVersion::RDNA_WMMA) {
|
||||
} else if (matrixCoreVer == MatrixCoreVersion::RDNA_WMMA) {
|
||||
patterns.add<::BlockedToWMMA>(context);
|
||||
}*/
|
||||
}
|
||||
if (applyPatternsAndFoldGreedily(m, std::move(patterns)).failed()) {
|
||||
signalPassFailure();
|
||||
}
|
||||
@@ -424,7 +426,8 @@ public:
|
||||
|
||||
std::unique_ptr<Pass>
|
||||
mlir::createTritonAMDGPUAccelerateMatmulPass(std::string archGen,
|
||||
int matrixInstructionSize) {
|
||||
int matrixInstructionSize,
|
||||
bool enableWmmaTransform) {
|
||||
return std::make_unique<TritonAMDGPUAccelerateMatmulPass>(
|
||||
archGen, matrixInstructionSize);
|
||||
archGen, matrixInstructionSize, enableWmmaTransform);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user