Skip to content

Commit 1b6689e

Browse files
committed
fix order for DPAS
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent ab037d4 commit 1b6689e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Dialect/TritonGPU/IR/Dialect.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ SmallVector<unsigned> getOrder(Attribute layout) {
299299
}
300300
if (auto dotLayout = dyn_cast<DotOperandEncodingAttr>(layout)) {
301301
auto rank = getWarpsPerCTA(dotLayout.getParent()).size();
302+
if (dyn_cast<intel::DpasEncodingAttr>(dotLayout.getParent())) {
303+
SmallVector<unsigned> order(rank);
304+
std::iota(order.rbegin(), order.rend(), 0);
305+
return order;
306+
}
302307
return getOrderForDotOperand(dotLayout.getOpIdx(), rank);
303308
}
304309
if (auto sliceLayout = dyn_cast<SliceEncodingAttr>(layout)) {

0 commit comments

Comments
 (0)