[Mlir-commits] [mlir] [mlir][gpu] Make launch_func op use SymbolUserOpInterface (PR #173277)
lonely eagle
llvmlistbot at llvm.org
Mon Dec 22 09:00:04 PST 2025
================
@@ -137,14 +137,14 @@ module attributes {gpu.container_module} {
// -----
module attributes {gpu.container_module} {
- module @kernels {
+ gpu.module @kernels_container {
gpu.func @kernel_1(%arg1 : !llvm.ptr) kernel {
gpu.return
}
}
func.func @launch_func_missing_kernel_attr(%sz : index, %arg : !llvm.ptr) {
- // expected-error at +1 {{kernel module 'kernels' is undefined}}
+ // expected-error at +1 {{kernel container 'kernels' is undefined}}
----------------
linuxlonelyeagle wrote:
it would report
```
a.mlir:3:5: error: 'gpu.func' op expects parent op 'gpu.module'
gpu.func @kernel_1(%arg1 : !llvm.ptr) kernel {
^
a.mlir:3:5: note: see current operation:
"gpu.func"() <{function_type = (!llvm.ptr) -> ()}> ({
^bb0(%arg0: !llvm.ptr):
"gpu.return"() : () -> ()
}) {gpu.kernel, sym_name = "kernel_1", workgroup_attributions = 0 : i64} : () -> ()
```
https://github.com/llvm/llvm-project/pull/173277
More information about the Mlir-commits
mailing list