File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mlir/test/Conversion/GPUToSPIRV Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -798,10 +798,10 @@ module attributes {
798798} {
799799
800800gpu.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
823823gpu.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 )
You can’t perform that action at this time.
0 commit comments