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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Feb 27 14:55:48 PST 2024


Author: Iman Hosseini
Date: 2024-02-27T14:55:45-08:00
New Revision: a3748d60ff18f612cd26a0b4ca7f05f2fbef264d

URL: https://github.com/llvm/llvm-project/commit/a3748d60ff18f612cd26a0b4ca7f05f2fbef264d
DIFF: https://github.com/llvm/llvm-project/commit/a3748d60ff18f612cd26a0b4ca7f05f2fbef264d.diff

LOG: [MLIR] Update GPU.md: add gpu kernel outlining to doc example. (#83141)

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

Added: 
    

Modified: 
    mlir/docs/Dialects/GPU.md

Removed: 
    


################################################################################
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.


        


More information about the Mlir-commits mailing list