Skip to content

Commit 1133103

Browse files
[Intel] Add getThreadsPerWarpForOperand to DpasEncodingAttr
Signed-off-by: Whitney Tsang <[email protected]>
1 parent a3c58e3 commit 1133103

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

third_party/intel/include/Dialect/TritonIntelGPU/IR/TritonIntelGPUAttrDefs.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ along the row (resp. col) dimension.
9191
SmallVector<unsigned> getSizePerThreadForOperand(int kWidth, OpIdx opIdx) const;
9292
SmallVector<unsigned> getElemsPerThreadForOperands(ArrayRef<int64_t> shape, Type eltTy, OpIdx opIdx) const;
9393
SmallVector<unsigned> getRepOrderForOperand(OpIdx opIdx) const;
94+
SmallVector<unsigned> getThreadsPerWarpForOperand(int opIdx) const;
9495
unsigned getTotalElemsPerThreadForOperand(ArrayRef<int64_t> shape, Type eltTy, int kWidth, OpIdx opIdx) const;
9596

9697
// Forwarder functions for casting unsigned to OpIdx.

third_party/intel/lib/Dialect/TritonIntelGPU/IR/Dialect.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ DpasEncodingAttr::getRepOrderForOperand(OpIdx opIdx) const {
157157
return getOrderForDotOperand(unsigned(opIdx), rank, /*kMajor*/ true);
158158
}
159159

160+
SmallVector<unsigned>
161+
DpasEncodingAttr::getThreadsPerWarpForOperand(int opIdx) const {
162+
llvm::report_fatal_error(
163+
"getThreadsPerWarpForOperand not implemented for DpasEncodingAttr");
164+
return {};
165+
}
166+
160167
SmallVector<unsigned>
161168
DpasEncodingAttr::getElemsPerThread(ArrayRef<int64_t> shape, Type eltTy) const {
162169
size_t rank = shape.size();

0 commit comments

Comments
 (0)