Skip to content

Commit 6aa9226

Browse files
committed
Remove getElemsPerThreadForOperands
1 parent 78c13a5 commit 6aa9226

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

include/triton/Dialect/TritonGPU/IR/TritonGPUAttrDefs.td

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,6 @@ def MmaEncodingTrait : AttrInterface<"MmaEncodingTrait"> {
795795
"SmallVector<unsigned>",
796796
"getRepOrderForOperand",
797797
(ins "int":$opIdx)>,
798-
799-
InterfaceMethod<"Return element sizes per thread for dot operands.", "SmallVector<unsigned>",
800-
"getElemsPerThreadForOperands", (ins "ArrayRef<int64_t>":$tensorShape,
801-
"Type":$eltTy,
802-
"unsigned":$opIdx)>,
803798
];
804799
}
805800

@@ -933,10 +928,6 @@ V [ 0,4,8...60 1,5...61 2,6...62 3,7...63 ] [ 128,132...188 129,
933928
return contigPerThread;
934929
};
935930

936-
SmallVector<unsigned> getElemsPerThreadForOperands(ArrayRef<int64_t> shape, Type eltTy, unsigned opIdx) const {
937-
llvm_unreachable("getElemsPerThreadForOperands is not supported.");
938-
};
939-
940931
}];
941932

942933
let genVerifyDecl = 1;
@@ -1045,10 +1036,6 @@ Row | warp 0 warp 2
10451036
}
10461037
return contigPerThread;
10471038
};
1048-
1049-
SmallVector<unsigned> getElemsPerThreadForOperands(ArrayRef<int64_t> shape, Type eltTy, unsigned opIdx) const {
1050-
llvm_unreachable("getElemsPerThreadForOperands is not supported.");
1051-
};
10521039
}];
10531040
}
10541041

@@ -1173,10 +1160,6 @@ For example, the matrix L corresponding to blockTileSize=[32,16] is:
11731160
return contigPerThread;
11741161
};
11751162

1176-
SmallVector<unsigned> getElemsPerThreadForOperands(ArrayRef<int64_t> shape, Type eltTy, unsigned opIdx) const {
1177-
llvm_unreachable("getElemsPerThreadForOperands is not supported.");
1178-
};
1179-
11801163
}];
11811164

11821165
let hasCustomAssemblyFormat = 1;

lib/Dialect/TritonGPU/IR/Dialect.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,6 @@ DotOperandEncodingAttr::getElemsPerThread(ArrayRef<int64_t> shape,
10981098
return regs;
10991099
}
11001100

1101-
if (auto mmaParent = mlir::dyn_cast<MmaEncodingTrait>(getParent())) {
1102-
return mmaParent.getElemsPerThreadForOperands(shape, eltTy, getOpIdx());
1103-
}
11041101
llvm_unreachable("getElemsPerThread is not supported for dot operand");
11051102
return SmallVector<unsigned>();
11061103
}

0 commit comments

Comments
 (0)