[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:
parent
001e18c816
commit
a3748d60ff
@ -50,6 +50,7 @@ An example of how the compilation workflow look is:
|
|||||||
```
|
```
|
||||||
mlir-opt example.mlir \
|
mlir-opt example.mlir \
|
||||||
--pass-pipeline="builtin.module( \
|
--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.
|
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.module(convert-gpu-to-nvvm), \ # Convert GPU to NVVM.
|
||||||
gpu-to-llvm, \ # Convert GPU to LLVM.
|
gpu-to-llvm, \ # Convert GPU to LLVM.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user