[PATCH] D74963: [MLIR][GPU] Implement a simple greedy loop mapper.

Stephan Herhut via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 21 07:19:08 PST 2020


herhut created this revision.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, csigg, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a reviewer: mravishankar.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.

The mapper assigns annotations to loop.parallel operations that
are compatible with the loop to gpu mapping pass. The outermost
loop uses the grid dimensions, followed by block dimensions. All
remaining loops are mapped to sequential loops.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74963

Files:
  mlir/include/mlir/Dialect/GPU/ParallelLoopMapper.h
  mlir/include/mlir/Dialect/LoopOps/LoopOps.td
  mlir/lib/Dialect/GPU/CMakeLists.txt
  mlir/lib/Dialect/GPU/Transforms/ParallelLoopMapper.cpp
  mlir/test/Dialect/GPU/mapping.mlir
  mlir/test/lib/Transforms/CMakeLists.txt
  mlir/test/lib/Transforms/TestGpuParallelLoopMapping.cpp
  mlir/tools/mlir-opt/mlir-opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74963.245849.patch
Type: text/x-patch
Size: 12568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200221/10719f69/attachment.bin>


More information about the llvm-commits mailing list