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

gpu-kernel-outlining is needed for this example to work.
This commit is contained in:
Iman Hosseini 2024-02-27 22:55:45 +00:00 committed by GitHub
parent 001e18c816
commit a3748d60ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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