[Mlir-commits] [mlir] [MLIR][XeGPU] Matrix load/store subgroup distribution (PR #165008)
Jianhui Li
llvmlistbot at llvm.org
Thu Oct 30 22:00:35 PDT 2025
================
@@ -191,11 +191,21 @@ IsValidMatrixOpParams(VectorType dataTy, MemDescType mdescTy,
ArrayRef<int64_t> dataShape = dataTy.getShape();
ArrayRef<int64_t> mdescShape = mdescTy.getShape();
-
+ if (subgroup_block_io && layout) {
+ auto laneData = layout.getEffectiveLaneDataAsInt();
+ if (!laneData.empty()) {
+ bool isLaneDataLinear =
+ std::all_of(laneData.begin(), std::prev(laneData.end()),
+ [](int x) { return x == 1; });
+ if (!isLaneDataLinear)
+ return emitError()
+ << "With subgroup_block_io, lane data must be linear.";
+ if (isLaneDataLinear && laneData.back() != 1)
----------------
Jianhui-Li wrote:
Can the error message just be "Without subgroup_block_io, tensor tile accessed by each lane must be contiguous"
https://github.com/llvm/llvm-project/pull/165008
More information about the Mlir-commits
mailing list