[all-commits] [llvm/llvm-project] a0f843: [SCF] Add thread_dim_mapping attribute to scf.fore...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Mon Jun 27 04:59:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a0f843fdafa71a8f12095afca12c8964954ffab6
      https://github.com/llvm/llvm-project/commit/a0f843fdafa71a8f12095afca12c8964954ffab6
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
    M mlir/lib/Dialect/SCF/IR/SCF.cpp
    M mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
    M mlir/test/Dialect/SCF/one-shot-bufferize-tensor-copy-insertion.mlir
    M mlir/test/Dialect/SCF/ops.mlir

  Log Message:
  -----------
  [SCF] Add thread_dim_mapping attribute to scf.foreach_thread

An optional thread_dim_mapping index array attribute specifies for each
virtual thread dimension, how it remaps 1-1 to a set of concrete processing
element resources (e.g. a CUDA grid dimension or a level of concrete nested
async parallelism). At this time, the specification is backend-dependent and
is not verified by the op, beyond being an index array attribute.
It is the reponsibility of the lowering to interpret the index array in the
context of the concrete target the op is lowered to, or to ignore it when
the specification is ill-formed or unsupported for a particular target.

Differential Revision: https://reviews.llvm.org/D128633




More information about the All-commits mailing list