[Openmp-commits] [PATCH] D109921: [OpenMP][host runtime] Add support for teams affinity
Jonathan Peyton via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 16 13:36:40 PDT 2021
jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, hbae, tlwilmar, Nawrin.
jlpeyton added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
jlpeyton requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
This patch implements teams affinity on the host.
The default is spread. A user can specify either spread, close, or
primary using `KMP_TEAMS_PROC_BIND` environment variable. Unlike
`OMP_PROC_BIND`, `KMP_TEAMS_PROC_BIND` is only a single value and is not a
list of values. The values follow the same semantics under the OpenMP
specification for parallel regions except T is the number of teams in
a league instead of the number of threads in a parallel region.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109921
Files:
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_global.cpp
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/kmp_settings.cpp
openmp/runtime/test/affinity/libomp_test_topology.h
openmp/runtime/test/affinity/teams-affinity.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109921.373056.patch
Type: text/x-patch
Size: 32287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210916/7f7d1966/attachment-0001.bin>
More information about the Openmp-commits
mailing list