Skip to content

Commit f39e657

Browse files
committed
address review comments + snake_case python func return type
1 parent 531a18e commit f39e657

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

mlir/include/mlir/Dialect/XeGPU/TransformOps/XeGPUTransformOps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ def SetGPULaunchThreadsOp
167167
TransformOpInterface
168168
]> {
169169

170-
let summary = "Set number of threads for a given gpu.launch operation"; let
171-
description = [{
170+
let summary = "Set number of threads for a given gpu.launch operation";
171+
let description = [{
172172
Overrides the x,y,z threads operands of a given `gpu.launch` operation in-place.
173173
}];
174174

mlir/python/mlir/dialects/transform/xegpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,5 @@ def set_gpu_launch_threads(
166166
*,
167167
loc=None,
168168
ip=None,
169-
):
169+
) -> SetGPULaunchThreadsOp:
170170
return SetGPULaunchThreadsOp(launch_op, threads, loc=loc, ip=ip)

mlir/test/Dialect/XeGPU/transform-ops-invalid.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func.func @set_gpu_launch_threads_bad_threads(%arg0: memref<4096x4096xf16>) {
112112
%c16 = arith.constant 16 : index
113113
gpu.launch blocks(%arg3, %arg4, %arg5) in (%arg9 = %c16, %arg10 = %c16, %arg11 = %c1) threads(%arg6, %arg7, %arg8) in (%arg12 = %c1, %arg13 = %c1, %arg14 = %c1) {
114114
gpu.terminator
115-
} {SCFToGPU_visited}
115+
}
116116
return
117117
}
118118

mlir/test/Dialect/XeGPU/transform-ops.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func.func @set_gpu_launch_threads(%arg0: memref<4096x4096xf16>) {
269269
// CHECK-SAME: threads(%{{.*}}, %{{.*}}, %{{.*}}) in (%{{.*}} = %[[C8]], %{{.*}} = %[[C4]], %{{.*}} = %[[C1_0]])
270270
gpu.launch blocks(%arg3, %arg4, %arg5) in (%arg9 = %c16, %arg10 = %c16, %arg11 = %c1) threads(%arg6, %arg7, %arg8) in (%arg12 = %c1, %arg13 = %c1, %arg14 = %c1) {
271271
gpu.terminator
272-
} {SCFToGPU_visited}
272+
}
273273
return
274274
}
275275
module attributes {transform.with_named_sequence} {
@@ -296,7 +296,7 @@ func.func @set_gpu_launch_threads_param(%arg0: memref<4096x4096xf16>) {
296296
// CHECK-SAME: threads(%{{.*}}, %{{.*}}, %{{.*}}) in (%{{.*}} = %[[C8]], %{{.*}} = %[[C4]], %{{.*}} = %[[C1_0]])
297297
gpu.launch blocks(%arg3, %arg4, %arg5) in (%arg9 = %c16, %arg10 = %c16, %arg11 = %c1) threads(%arg6, %arg7, %arg8) in (%arg12 = %c1, %arg13 = %c1, %arg14 = %c1) {
298298
gpu.terminator
299-
} {SCFToGPU_visited}
299+
}
300300
return
301301
}
302302
module attributes {transform.with_named_sequence} {

0 commit comments

Comments
 (0)