[Mlir-commits] [mlir] [mlir] Document GPU dialect layering to capture discussions from a PR (PR #95812)
Adam Siemieniuk
llvmlistbot at llvm.org
Tue Jun 18 03:30:35 PDT 2024
================
@@ -61,6 +89,11 @@ 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.
----------------
adam-smnk wrote:
Could use also add the motivation for this decision?
https://github.com/llvm/llvm-project/pull/95812
More information about the Mlir-commits
mailing list