File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,15 @@ SmallVector<unsigned> getOrder(Attribute layout) {
304304 }
305305 if (auto dotLayout = dyn_cast<DotOperandEncodingAttr>(layout)) {
306306 auto rank = getWarpsPerCTA (dotLayout.getParent ()).size ();
307+ // FIXME: delete if branch for `DpasEncodingAttr` and provide more
308+ // general solution to make `getOrderForDotOperand` function compatible
309+ // with Intel layouts.
310+ // More details: https://github.com/intel/intel-xpu-backend-for-triton/pull/2517
311+ if (dyn_cast<intel::DpasEncodingAttr>(dotLayout.getParent ())) {
312+ SmallVector<unsigned > order (rank);
313+ std::iota (order.rbegin (), order.rend (), 0 );
314+ return order;
315+ }
307316 return getOrderForDotOperand (dotLayout.getOpIdx (), rank);
308317 }
309318 if (auto sliceLayout = dyn_cast<SliceEncodingAttr>(layout)) {
You can’t perform that action at this time.
0 commit comments