Skip to content

Commit 0511e1b

Browse files
committed
cleanup
1 parent 1b16552 commit 0511e1b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ SliceAttr::getOffsets(OpBuilder &builder, Location loc, Value linearId,
388388
SmallVector<int64_t> sgShape;
389389
if (auto maybeSgShape = getSgDataAsInt())
390390
sgShape = maybeSgShape.value();
391-
else if (auto ratio = computeShapeRatio(shape, sgLayout))
392-
sgShape = ratio.value();
391+
else if (auto derivedShape = computeShapeRatio(shape, sgLayout))
392+
sgShape = derivedShape.value();
393393
else
394394
return failure();
395395

mlir/test/Dialect/XeGPU/xegpu-wg-to-sg-rr.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ gpu.module @test_round_robin_assignment {
3131
//CHECK: [[ADDX:%.+]] = arith.addi [[LX]], [[C0_1]] : index
3232
//CHECK: [[C128:%.+]] = arith.constant 128 : index
3333
//CHECK: [[offY:%.+]] = index.remu [[ADDY]], [[C128]]
34-
//CHECK: [[C128_2:%.+]] = arith.constant 128 : index
35-
//CHECK: [[offX:%.+]] = index.remu [[ADDX]], [[C128_2]]
34+
//CHECK: [[C64_2:%.+]] = arith.constant 64 : index
35+
//CHECK: [[offX:%.+]] = index.remu [[ADDX]], [[C64_2]]
3636
//CHECK: xegpu.create_nd_tdesc [[ARG_0]][[[offY]], [[offX]]] : memref<256x128xf32> -> !xegpu.tensor_desc<16x64xf32>
3737
%tdesc = xegpu.create_nd_tdesc %src[0, 0] : memref<256x128xf32>
38-
-> !xegpu.tensor_desc<128x128xf32, #xegpu.layout<sg_layout = [8, 4], sg_data = [16, 64]>>
38+
-> !xegpu.tensor_desc<128x64xf32, #xegpu.layout<sg_layout = [8, 4], sg_data = [16, 64]>>
3939
gpu.return
4040
}
4141

0 commit comments

Comments
 (0)