[BACKEND] Added support for 1D conversion blocked -> slice (#831)
This commit is contained in:
@@ -1197,7 +1197,7 @@ struct BroadcastOpConversion
|
||||
broadcastDims.push_back(d);
|
||||
srcLogicalShape[d] = 1;
|
||||
srcLogicalShape[d + rank] =
|
||||
std::max(unsigned(1), srcLayout.getSizePerThread()[d]);
|
||||
std::max<unsigned>(1, srcLayout.getSizePerThread()[d]);
|
||||
} else {
|
||||
srcLogicalShape[d] = numCtas;
|
||||
srcLogicalShape[d + rank] = resultLayout.getSizePerThread()[d];
|
||||
@@ -2231,6 +2231,7 @@ LogicalResult ConvertLayoutOpConversion::lowerDistributedToDistributed(
|
||||
}
|
||||
barrier();
|
||||
if (dstLayout.isa<BlockedEncodingAttr>() ||
|
||||
dstLayout.isa<SliceEncodingAttr>() ||
|
||||
dstLayout.isa<MmaEncodingAttr>()) {
|
||||
processReplica(loc, rewriter, /*stNotRd*/ false, dstTy, outNumCTAsEachRep,
|
||||
multiDimRepId, outVec, paddedRepShape, outOrd, outVals,
|
||||
|
Reference in New Issue
Block a user