Skip to content

Commit 4b5cffb

Browse files
committed
save work
1 parent 8796537 commit 4b5cffb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ LogicalResult TensorDescType::verify(
326326
// ---------------------------------------------------------------------
327327
// Case 2: Block loads/stores
328328
// ---------------------------------------------------------------------
329-
// Additionalm definitions:
329+
// Additional definitions:
330330
// tensor_size = tensor_desc[0] * .. * tensor_desc[r-1] * array_length
331331
// n_distribution_units = tensor_size / distribution_unit_size
332332
// Given above definitions, the following conditions must be met:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ LogicalResult LoadNdOp::verify() {
290290
? success()
291291
: emitOpError()
292292
<< "Result shape " << makeString(valueShape)
293-
<< " is not consistent with tensor descripter " << tdescTy;
293+
<< " is not consistent with tensor descriptor " << tdescTy;
294294

295295
// sg_map present means IR is in SIMT mode. In this case sg_map determines the
296296
// value shape.
@@ -345,7 +345,7 @@ LogicalResult StoreNdOp::verify() {
345345
? success()
346346
: emitOpError()
347347
<< "Result shape " << makeString(valueShape)
348-
<< " is not consistent with tensor descripter shape "
348+
<< " is not consistent with tensor descriptor shape "
349349
<< makeString(tdescShape);
350350

351351
// sg_map present means IR is in SIMT mode. In this case sg_map determines the

mlir/test/Dialect/XeGPU/invalid.mlir

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func.func @test_load_nd_vc_3(%src: memref<8x16xf16>) {
7878
}
7979

8080
// -----
81-
func.func @test_load_nd_vc_4(%src: memref<24x32xf32>) {
81+
func.func @test_load_nd_sg_map(%src: memref<24x32xf32>) {
8282
%1 = xegpu.create_nd_tdesc %src[0, 0] : memref<24x32xf32> ->
8383
!xegpu.tensor_desc<8x16xf32, #xegpu.sg_map<wi_layout = [1, 16], wi_data = [1, 1]>>
8484
// expected-error@+1 {{Result shape [8, 2] is not consistent with distributed vector shape [8, 1]}}
@@ -90,7 +90,7 @@ func.func @test_load_nd_vc_4(%src: memref<24x32xf32>) {
9090
}
9191

9292
// -----
93-
func.func @test_load_nd_vc_5(%src: memref<24x32xf32>) {
93+
func.func @test_load_nd_sg_map(%src: memref<24x32xf32>) {
9494
%1 = xegpu.create_nd_tdesc %src[0, 0] : memref<24x32xf32> ->
9595
!xegpu.tensor_desc<16xf32, #xegpu.sg_map<wi_layout = [1, 16], wi_data = [1, 1]>>
9696
// expected-error@+1 {{Result shape [8] is not consistent with distributed vector shape [1, 1]}}
@@ -105,7 +105,7 @@ func.func @test_load_nd_vc_5(%src: memref<24x32xf32>) {
105105
func.func @test_load_nd_vc_6(%src: memref<24x32xf32>) {
106106
%1 = xegpu.create_nd_tdesc %src[0, 0] : memref<24x32xf32> ->
107107
!xegpu.tensor_desc<8x16xf32>
108-
// expected-error@+1 {{Result shape [8, 1] is not consistent with tensor descripter}}
108+
// expected-error@+1 {{Result shape [8, 1] is not consistent with tensor descriptor}}
109109
%2 = xegpu.load_nd %1 <{l1_hint = #xegpu.cache_hint<cached>,
110110
l2_hint = #xegpu.cache_hint<uncached>}>
111111
: !xegpu.tensor_desc<8x16xf32> -> vector<8x1xf32>
@@ -134,7 +134,7 @@ func.func @test_store_nd_vc_2(%dst: memref<16xf16>) {
134134
}
135135

136136
// -----
137-
func.func @test_store_nd_vc_3(%dst: memref<24x32xf32>, %data: vector<8x2xf32>) {
137+
func.func @test_store_nd_sg_map(%dst: memref<24x32xf32>, %data: vector<8x2xf32>) {
138138
%1 = xegpu.create_nd_tdesc %dst[0, 0] : memref<24x32xf32> ->
139139
!xegpu.tensor_desc<8x16xf32, #xegpu.sg_map<wi_layout = [1, 16], wi_data = [1, 1]>>
140140
// expected-error@+1 {{Result shape [8, 2] is not consistent with distributed vector shape [8, 1] for tensor descriptor}}
@@ -144,7 +144,7 @@ func.func @test_store_nd_vc_3(%dst: memref<24x32xf32>, %data: vector<8x2xf32>) {
144144
}
145145

146146
// -----
147-
func.func @test_store_nd_vc_4(%dst: memref<24x32xf32>, %data: vector<2xf32>) {
147+
func.func @test_store_nd_sg_map(%dst: memref<24x32xf32>, %data: vector<2xf32>) {
148148
%1 = xegpu.create_nd_tdesc %dst[0, 0] : memref<24x32xf32> ->
149149
!xegpu.tensor_desc<16xf32, #xegpu.sg_map<wi_layout = [1, 16], wi_data = [1, 1]>>
150150
// expected-error@+1 {{Result shape [2] is not consistent with distributed vector shape [1, 1] for tensor descriptor}}
@@ -157,7 +157,7 @@ func.func @test_store_nd_vc_4(%dst: memref<24x32xf32>, %data: vector<2xf32>) {
157157
func.func @test_store_nd_vc_5(%dst: memref<24x32xf32>, %data: vector<8x1xf32>) {
158158
%1 = xegpu.create_nd_tdesc %dst[0, 0] : memref<24x32xf32> ->
159159
!xegpu.tensor_desc<8x16xf32>
160-
// expected-error@+1 {{Result shape [8, 1] is not consistent with tensor descripter shape [8, 16]}}
160+
// expected-error@+1 {{Result shape [8, 1] is not consistent with tensor descriptor shape [8, 16]}}
161161
xegpu.store_nd %data, %1 : vector<8x1xf32>, !xegpu.tensor_desc<8x16xf32>
162162
return
163163
}

0 commit comments

Comments
 (0)