[BACKEND] Use our internal slice implementation to avoid combinatoria… (#2535)

…l explosion
This commit is contained in:
Thomas Raoux
2023-10-23 20:06:34 -07:00
committed by GitHub
parent c65d2c2ed6
commit 5e6071254c

View File

@@ -48,7 +48,7 @@ warpsPerTileV2(tt::DotOp dotOp, const ArrayRef<int64_t> shape, int numWarps) {
auto filter = [&dotOp](Operation *op) {
return op->getParentRegion() == dotOp->getParentRegion();
};
auto slices = mlir::getSlice(dotOp, {filter});
auto slices = multiRootGetSlice(dotOp, {filter});
for (Operation *op : slices)
if (isa<tt::DotOp>(op) && (op != dotOp))
return {(unsigned)numWarps, 1};