Skip to content

Commit d43e55e

Browse files
committed
Add newfile
1 parent 14d6fb1 commit d43e55e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: mlir-opt --xegpu-wg-to-sg-distribute -split-input-file %s | FileCheck %s
2+
3+
gpu.module @test_distribution {
4+
// CHECK-LABEL: create_nd_tdesc_no_offset
5+
// CHECK-SAME: %[[ARG_0:.*]]: memref<256x128xf32>
6+
gpu.func @create_nd_tdesc_no_offset(%src: memref<256x128xf32>) {
7+
// CHECK-COUNT-4: xegpu.create_nd_tdesc %[[ARG_0]] : memref<256x128xf32>
8+
// CHECK-SAME: -> !xegpu.tensor_desc<16x16xf32, #xegpu.layout<lane_layout = [1, 16], lane_data = [1, 1]>>
9+
// CHECK-NOT: xegpu.create_nd_tdesc
10+
%tdesc = xegpu.create_nd_tdesc %src: memref<256x128xf32>
11+
-> !xegpu.tensor_desc<256x128xf32, #xegpu.layout<sg_layout = [8, 4], sg_data = [16, 16], lane_layout = [1, 16], lane_data = [1, 1]>>
12+
gpu.return
13+
}
14+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: mlir-opt --xegpu-wg-to-sg-distribute -split-input-file %s | FileCheck %s
2+
3+
gpu.module @test_distribution {
4+
// CHECK-LABEL: create_nd_tdesc_no_offset
5+
// CHECK-SAME: %[[ARG_0:.*]]: memref<256x128xf32>
6+
gpu.func @create_nd_tdesc_no_offset(%src: memref<256x128xf32>) {
7+
// CHECK: xegpu.create_nd_tdesc %[[ARG_0]] : memref<256x128xf32>
8+
// CHECK-SAME: -> !xegpu.tensor_desc<32x32xf32, #xegpu.layout<lane_layout = [1, 16], lane_data = [1, 1]>>
9+
%tdesc = xegpu.create_nd_tdesc %src : memref<256x128xf32>
10+
-> !xegpu.tensor_desc<256x128xf32, #xegpu.layout<sg_layout = [8, 4], sg_data = [32, 32], lane_layout = [1, 16], lane_data = [1, 1]>>
11+
gpu.return
12+
}
13+
}

0 commit comments

Comments
 (0)