If MLIR_CUDA_RUNNER_ENABLED, register a 'gpu-to-cubin' conversion pass to mlir-opt.
The next step is to switch CUDA integration tests from mlir-cuda-runner to mlir-opt + mlir-cpu-runner and remove mlir-cuda-runner.
Depends On D98279
Paths
| Differential D98203
[mlir] Add NVVM to CUBIN conversion to mlir-opt ClosedPublic Authored by csigg on Mar 8 2021, 11:26 AM.
Details Summary If MLIR_CUDA_RUNNER_ENABLED, register a 'gpu-to-cubin' conversion pass to mlir-opt. The next step is to switch CUDA integration tests from mlir-cuda-runner to mlir-opt + mlir-cpu-runner and remove mlir-cuda-runner. Depends On D98279
Diff Detail
Event TimelineHerald added subscribers: dcaballe, cota, teijeong and 18 others. · View Herald TranscriptMar 8 2021, 11:26 AM This revision now requires changes to proceed.Mar 8 2021, 11:30 AM
mehdi_amini added inline comments.
Comment Actions
If mlir-cpu-runner can also run things on the GPUs, it's name should be changed (to mlir-runner?). Or there could be an mlir-gpu-runner in the interest of reducing the link time for those who may just want to run on the CPU and not link in many other passes and dependences? csigg added inline comments.
Comment Actions This change should be ready for review again.
Comment Actions LGTM, but please give a chance to @herhut to have a general look since he reviewed the previous revisions in this series!
csigg added a child revision: D98360: [mlir] Change test-gpu-to-cubin to derive from SerializeToBlobPass.Mar 10 2021, 9:44 AM This revision is now accepted and ready to land.Mar 10 2021, 10:27 AM This revision was landed with ongoing or failed builds.Mar 11 2021, 1:07 AM Closed by commit rG2224221fb3fa: [mlir] Add NVVM to CUBIN conversion to mlir-opt (authored by csigg). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 329869 mlir/include/mlir/Dialect/GPU/Passes.h
mlir/include/mlir/InitAllPasses.h
mlir/lib/Conversion/GPUCommon/CMakeLists.txt
mlir/lib/Conversion/GPUCommon/ConvertKernelFuncToBlob.cpp
mlir/lib/Dialect/GPU/CMakeLists.txt
mlir/lib/Dialect/GPU/Transforms/SerializeToBlob.cpp
mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
mlir/test/Integration/GPU/CUDA/shuffle.mlir
|
nit: ///