diff options
| author | Tres Popp <tpopp@google.com> | 2020-01-14 11:09:59 +0100 |
|---|---|---|
| committer | Stephan Herhut <herhut@google.com> | 2020-01-14 12:05:47 +0100 |
| commit | 4624a1e8ac8a3f69cc887403b976f538f587744a (patch) | |
| tree | 13cb3b1371abedefbdbd7e09933633acc4aca44c /mlir/tools | |
| parent | 9492e9d8cfd356109276da5aa926b297db0e16db (diff) | |
| download | bcm5719-llvm-4624a1e8ac8a3f69cc887403b976f538f587744a.tar.gz bcm5719-llvm-4624a1e8ac8a3f69cc887403b976f538f587744a.zip | |
[mlir] Create a gpu.module operation for the GPU Dialect.
Summary:
This is based on the use of code constantly checking for an attribute on
a model and instead represents the distinct operaion with a different
op. Instead, this op can be used to provide better filtering.
Reviewers: herhut, mravishankar, antiagainst, rriddle
Reviewed By: herhut, antiagainst, rriddle
Subscribers: liufengdb, aartbik, jholewinski, mgorny, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, csigg, arpith-jacob, mgester, lucyrfox, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D72336
Diffstat (limited to 'mlir/tools')
| -rw-r--r-- | mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp b/mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp index d6160d6d6e0..a05016f48e8 100644 --- a/mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp +++ b/mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp @@ -105,7 +105,7 @@ static LogicalResult runMLIRPasses(ModuleOp m) { applyPassManagerCLOptions(pm); pm.addPass(createGpuKernelOutliningPass()); - auto &kernelPm = pm.nest<ModuleOp>(); + auto &kernelPm = pm.nest<gpu::GPUModuleOp>(); kernelPm.addPass(createLowerGpuOpsToNVVMOpsPass()); kernelPm.addPass(createConvertGPUKernelToCubinPass(&compilePtxToCubin)); pm.addPass(createLowerToLLVMPass()); |

