[all-commits] [llvm/llvm-project] 0136a4: [OpenMP] Add an option to limit shared memory usag...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Feb 18 05:35:58 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0136a4401f90b1effd07b3ac8575fdb155f9984d
https://github.com/llvm/llvm-project/commit/0136a4401f90b1effd07b3ac8575fdb155f9984d
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
M llvm/test/Transforms/OpenMP/replace_globalization.ll
Log Message:
-----------
[OpenMP] Add an option to limit shared memory usage in OpenMPOpt
One of the optimizations performed in OpenMPOpt pushes globalized
variables to static shared memory. This is preferable to keeping the
runtime call in all cases, however if too many variables are pushed to
hared memory the kernel will crash. Since this is an optimization and
not something the user specified explicitly, there should be an option
to limit this optimization in those cases. This path introduces the
`-openmp-opt-shared-limit=` option to limit the amount of bytes that
will be placed in shared memory from HeapToShared.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D120079
More information about the All-commits
mailing list