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

Iman Hosseini llvmlistbot at llvm.org
Tue Feb 27 06:39:38 PST 2024


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

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

>From f5c9e8cf3016b6d02dbba95b0f65f030f845ccfe Mon Sep 17 00:00:00 2001
From: Iman Hosseini <ImanHosseini at users.noreply.github.com>
Date: Tue, 27 Feb 2024 14:39:07 +0000
Subject: [PATCH] Update GPU.md: add gpu kernel outlining to doc example.

gpu-kernel-outlining is needed for this example to work.
---
 mlir/docs/Dialects/GPU.md | 1 +
 1 file changed, 1 insertion(+)

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