Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
scxiao committed Jan 26, 2024
1 parent 0d2a73e commit 820b36f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Dialect/TritonGPU/Transforms/AccelerateAMDMatmul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ static bool isChainDot(tt::DotOp &dotOp) {
bwdOpt.filter = filter;
mlir::SetVector<mlir::Operation*> bwdSlices;
// search backward of the operand 0 of the dot
auto oper0 = dotOp.getOperand(0).getDefiningOp();
mlir::getBackwardSlice(dyn_cast<mlir::Operation*>(oper0), &bwdSlices, bwdOpt);
int i = 0;
mlir::Operation* oper0 = dotOp.getOperand(0).getDefiningOp();
mlir::getBackwardSlice(oper0, &bwdSlices, bwdOpt);
for (Operation *op : bwdSlices) {
if (isa<tt::DotOp>(op) && (op != dotOp)) {
return true;
Expand All @@ -88,7 +87,6 @@ static bool isChainDot(tt::DotOp &dotOp) {
return false;
}


SmallVector<unsigned, 2>
warpsPerTile(tt::DotOp dotOp, const ArrayRef<int64_t> shape, int numWarps,
SmallVector<int64_t, 2> shapePerWarp) {
Expand Down

0 comments on commit 820b36f

Please sign in to comment.