Skip to content

Commit 6d8d666

Browse files
committed
[OptimizeBlockIOEncoding]: Use the dotOperandEncoding when getting the
instr shape, not the dot/dpas encoding
1 parent 68b0bae commit 6d8d666

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

third_party/intel/lib/TritonIntelGPUTransforms/OptimizeBlockIOEncoding.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ class TritonIntelGPUOptimizeBlockIOEncodingPass
260260
oldTensorType.getElementType().getIntOrFloatBitWidth();
261261

262262
auto tileParams = Subgroup2DBlockEncodingAttr::getInstrShapeForLayout(
263-
cast<DistributedEncodingTrait>(dpasLayout), oldTensorType.getShape(),
263+
cast<DistributedEncodingTrait>(dotOperandEncoding),
264+
oldTensorType.getShape(),
264265
blockIOAttr == StringAttr::get(&getContext(), "row_major"),
265266
elemSizeInBits / 8, &getContext());
266267
SmallVector<unsigned> instrShape{tileParams[0], tileParams[1]};

0 commit comments

Comments
 (0)