[Mlir-commits] [mlir] [mlir][spirv] Implement lowering `gpu.subgroup_reduce` with cluster size for SPIRV (PR #141402)

Lei Zhang llvmlistbot at llvm.org
Sun May 25 08:40:55 PDT 2025


================
@@ -789,3 +789,44 @@ gpu.module @kernels {
   }
 }
 }
+
+// -----
+
+module attributes {
+  gpu.container_module,
+  spirv.target_env = #spirv.target_env<#spirv.vce<v1.3, [Kernel, Addresses, Groups, GroupUniformArithmeticKHR, GroupNonUniformClustered], []>, #spirv.resource_limits<>>
+} {
+
+gpu.module @kernels {
+  // CHECK-LABEL:  spirv.func @test
----------------
antiagainst wrote:

This is not testing exactly the name? Also it's better to use a more descriptive name like `cluster_reduce`. (I know existing tests are not doing that though.)

https://github.com/llvm/llvm-project/pull/141402


More information about the Mlir-commits mailing list