[Mlir-commits] [mlir] [mlir] Document GPU dialect layering to capture discussions from a PR (PR #95812)

Adam Siemieniuk llvmlistbot at llvm.org
Thu Jun 20 02:32:49 PDT 2024


================
@@ -61,6 +88,15 @@ mlir-translate example-nvvm.mlir        \
   -o example.ll
 ```
 
+This compilation process expects all GPU code to live in a `gpu.module` and
+expects all kernels to be `gpu.func` operations. Non-kernel functions, like
+device library calls, may be defined using `func.func` or other non-GPU dialect
+operations. This permits downstream systems to use these wrappers witout
----------------
adam-smnk wrote:

```suggestion
operations. This permits downstream systems to use these wrappers without
```

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


More information about the Mlir-commits mailing list