diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2023-11-08 10:19:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 10:19:37 -0600 |
commit | 5cc603cb2244bb46683e4ce801fdf224aa2d1636 (patch) | |
tree | ff8d228b470c3f557ca77e8f0c1441874ba7c46d /llvm/lib/IR/Function.cpp | |
parent | 3dff285679323ccad60e658ea3cc6900f037e528 (diff) | |
download | llvm-5cc603cb2244bb46683e4ce801fdf224aa2d1636.zip llvm-5cc603cb2244bb46683e4ce801fdf224aa2d1636.tar.gz llvm-5cc603cb2244bb46683e4ce801fdf224aa2d1636.tar.bz2 |
[OpenMP] Add skewed iteration distribution on hybrid systems (#69946)
This commit adds skewed distribution of iterations in
nonmonotonic:dynamic schedule (static steal) for hybrid systems when
thread affinity is assigned. Currently, it distributes the iterations at
60:40 ratio. Consider this loop with dynamic schedule type,
for (int i = 0; i < 100; ++i). In a hybrid system with 20 hardware
threads (16 CORE and 4 ATOM core), 88 iterations will be assigned to
performance cores and 12 iterations will be assigned to efficient cores.
Each thread with CORE core will process 5 iterations + extras and with
ATOM core will process 3 iterations.
Differential Revision: https://reviews.llvm.org/D152955
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions