[all-commits] [llvm/llvm-project] 7665d3: [flang] Add reductions for CUF Kernels: Lowering (...

Iman Hosseini via All-commits all-commits at lists.llvm.org
Wed Jun 12 11:19:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7665d3d90da7f32e56cb57eb192dc8f189730686
      https://github.com/llvm/llvm-project/commit/7665d3d90da7f32e56cb57eb192dc8f189730686
  Author: Iman Hosseini <hosseini.iman at yahoo.com>
  Date:   2024-06-12 (Wed, 12 Jun 2024)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/CUF/CUFOps.td
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Optimizer/Dialect/CUF/CUFOps.cpp
    A flang/test/Lower/CUDA/cuda-kernel-do-reduction.cuf

  Log Message:
  -----------
  [flang] Add reductions for CUF Kernels: Lowering (#95184)

* Add reductionOperands and reductionAttrs to cuf's KernelOp. 
* Parsing is already working and the tree has the info: here I make the
Bridge emit the updated KernelOp with reduction information added.
* Check |reductionAttrs| = |reductionOperands| in verifier
* Add a test
@clementval @vzakhari

---------

Co-authored-by: Iman Hosseini <imanh at nvidia.com>
Co-authored-by: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list