[Mlir-commits] [mlir] Update GPU.md: add gpu kernel outlining to doc example. (PR #83141)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Feb 27 06:40:28 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Iman Hosseini (ImanHosseini)

<details>
<summary>Changes</summary>

gpu-kernel-outlining is needed for this example to work.

---
Full diff: https://github.com/llvm/llvm-project/pull/83141.diff


1 Files Affected:

- (modified) mlir/docs/Dialects/GPU.md (+1) 


``````````diff
diff --git a/mlir/docs/Dialects/GPU.md b/mlir/docs/Dialects/GPU.md
index 85255fdc5e6439..8a3acc33600a41 100644
--- a/mlir/docs/Dialects/GPU.md
+++ b/mlir/docs/Dialects/GPU.md
@@ -50,6 +50,7 @@ An example of how the compilation workflow look is:
 ```
 mlir-opt example.mlir                   \
   --pass-pipeline="builtin.module(      \
+    gpu-kernel-outlining,               \ # Outline gpu.launch body to a kernel.
     nvvm-attach-target{chip=sm_90 O=3}, \ # Attach an NVVM target to a gpu.module op.
     gpu.module(convert-gpu-to-nvvm),    \ # Convert GPU to NVVM.
     gpu-to-llvm,                        \ # Convert GPU to LLVM.

``````````

</details>


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


More information about the Mlir-commits mailing list