Skip to content

Commit 9dbd3d2

Browse files
committed
Use better function names in test
1 parent 377841b commit 9dbd3d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/test/Conversion/GPUToSPIRV/reductions.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,10 +798,10 @@ module attributes {
798798
} {
799799

800800
gpu.module @kernels {
801-
// CHECK-LABEL: spirv.func @test
801+
// CHECK-LABEL: spirv.func @test_subgroup_reduce_clustered
802802
// CHECK-SAME: (%[[ARG:.*]]: f32)
803803
// CHECK: %[[CLUSTER_SIZE:.*]] = spirv.Constant 8 : i32
804-
gpu.func @test22(%arg : f32) kernel
804+
gpu.func @test_subgroup_reduce_clustered(%arg : f32) kernel
805805
attributes {spirv.entry_point_abi = #spirv.entry_point_abi<workgroup_size = [16, 1, 1]>} {
806806
// CHECK: %{{.*}} = spirv.GroupNonUniformFAdd <Subgroup> <ClusteredReduce> %[[ARG]] cluster_size(%[[CLUSTER_SIZE]]) : f32, i32 -> f32
807807
%reduced = gpu.subgroup_reduce add %arg cluster(size = 8) : (f32) -> (f32)
@@ -821,7 +821,7 @@ module attributes {
821821
} {
822822

823823
gpu.module @kernels {
824-
gpu.func @test22(%arg : f32) kernel
824+
gpu.func @test_invalid_subgroup_reduce_clustered_stride(%arg : f32) kernel
825825
attributes {spirv.entry_point_abi = #spirv.entry_point_abi<workgroup_size = [16, 1, 1]>} {
826826
// expected-error @+1 {{failed to legalize operation 'gpu.subgroup_reduce'}}
827827
%reduced = gpu.subgroup_reduce add %arg cluster(size = 8, stride = 2) : (f32) -> (f32)

0 commit comments

Comments
 (0)