Skip to content

Commit dfd526b

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

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
@@ -304,6 +304,11 @@ SmallVector<unsigned> getOrder(Attribute layout) {
304304
}
305305
if (auto dotLayout = dyn_cast<DotOperandEncodingAttr>(layout)) {
306306
auto rank = getWarpsPerCTA(dotLayout.getParent()).size();
307+
if (dyn_cast<intel::DpasEncodingAttr>(dotLayout.getParent())) {
308+
SmallVector<unsigned> order(rank);
309+
std::iota(order.rbegin(), order.rend(), 0);
310+
return order;
311+
}
307312
return getOrderForDotOperand(dotLayout.getOpIdx(), rank);
308313
}
309314
if (auto sliceLayout = dyn_cast<SliceEncodingAttr>(layout)) {

0 commit comments

Comments
 (0)