[all-commits] [llvm/llvm-project] 839c85: [flang][OpenMP] Allocate `reduction` init temps on...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Thu Jul 3 01:19:08 PDT 2025


  Branch: refs/heads/users/ergawy/reduction_init_temps_on_stack
  Home:   https://github.com/llvm/llvm-project
  Commit: 839c85fc0d2040f7a75c437d68b0fc91136b7ab9
      https://github.com/llvm/llvm-project/commit/839c85fc0d2040f7a75c437d68b0fc91136b7ab9
  Author: ergawy <kareem.ergawy at amd.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M flang/lib/Lower/Support/PrivateReductionUtils.cpp
    M flang/test/Lower/OpenMP/parallel-reduction-array.f90

  Log Message:
  -----------
  [flang][OpenMP] Allocate `reduction` init temps on the stack for GPUs

Temps needed for the reduction init regions are now allocate on the heap
all the time. However, this is performance killer for GPUs since malloc
calls are prohibitively expensive. Therefore, we should do these
allocations on the stack for GPU reductions.


  Commit: 9fe0e3f917eba67b694618aafe4bd19da6079617
      https://github.com/llvm/llvm-project/commit/9fe0e3f917eba67b694618aafe4bd19da6079617
  Author: ergawy <kareem.ergawy at amd.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  add todo


Compare: https://github.com/llvm/llvm-project/compare/c3777c956627...9fe0e3f917eb

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