iree
iree copied to clipboard
Use mlir's map_nested_foreach_thread_to_gpu_blocks
MLIR's transform dialect now has capability to map scf.foreach_thread
to GPU blocks. https://reviews.llvm.org/D134190
This PR makes iree specific transform dialect operation (iree.foreach_thread_to_workgroup) to use mlir's new feature.
It also renames workgroup to gridDim in order to have same naming convention with the mlir's gpu dialect.
I have some tricking changes that I am trying to land in #10527, they will conflict with this, sorry .. Can you please rebase on top?
It also renames workgroup to gridDim in order to have same naming convention with the mlir's gpu dialect.
This is not a good change, IREE uses Vulkan terminology pervasively for CPU, GPU and mobile. MLIR's GPU dialect uses CUDA terminology.
Please revert this change.