Skip to content

Commit 5a8b454

Browse files
committed
Comments
1 parent 53d709c commit 5a8b454

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ struct ContractionLowering : public OpRewritePattern<vector::ContractionOp> {
330330
return rewriter.notifyMatchFailure(contractOp, "Expects acc 2D vector");
331331

332332
// Accept only plain 2D data layout.
333-
// VNNI packing is left to later lowering.
333+
// VNNI packing is applied to DPAS as a separate lowering step.
334334
TypedValue<VectorType> lhs = contractOp.getLhs();
335335
TypedValue<VectorType> rhs = contractOp.getRhs();
336336
if (lhs.getType().getRank() != 2 || rhs.getType().getRank() != 2)

mlir/test/Conversion/VectorToXeGPU/contract-to-xegpu.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func.func @dpas_gemm_i8(%lhs: vector<8x32xi8>, %rhs: vector<32x16xi8>,
4848

4949
// -----
5050

51-
// VNNI packing is added automatically by later XeGPU consumer.
5251
// For simplicity, only plain data layouts are currently supported.
52+
// VNNI packing is applied later as a separate lowering step.
5353

5454
#map = affine_map<(d0, d1, d2, d3) -> (d0, d2, d3)>
5555
#map1 = affine_map<(d0, d1, d2, d3) -> (d2, d1, d3)>

0 commit comments

Comments
 (0)