[all-commits] [llvm/llvm-project] 1f7d46: [flang][OpenMP] Allocate `reduction` init temps on...
Kareem Ergawy via All-commits
all-commits at lists.llvm.org
Wed Jul 2 03:34:23 PDT 2025
Branch: refs/heads/users/ergawy/reduction_init_temps_on_stack
Home: https://github.com/llvm/llvm-project
Commit: 1f7d4677265ebf8ece574e33b11eabb44f3ba058
https://github.com/llvm/llvm-project/commit/1f7d4677265ebf8ece574e33b11eabb44f3ba058
Author: ergawy <kareem.ergawy at amd.com>
Date: 2025-07-02 (Wed, 02 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.
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