[Openmp-commits] [PATCH] D125993: [OpenMP][libomp] Allow reset affinity mask after parallel

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu May 19 11:22:59 PDT 2022


jlpeyton created this revision.
jlpeyton added reviewers: tlwilmar, hbae, AndreyChurbanov.
jlpeyton added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
jlpeyton requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

Added control to reset affinity of primary thread after outermost parallel
region to initial affinity encountered before OpenMP runtime was initialized.
`KMP_AFFINITY` environment variable reset/noreset modifier introduced.
Default behavior is unchanged.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125993

Files:
  openmp/docs/design/Runtimes.rst
  openmp/runtime/src/kmp.h
  openmp/runtime/src/kmp_affinity.cpp
  openmp/runtime/src/kmp_csupport.cpp
  openmp/runtime/src/kmp_ftn_entry.h
  openmp/runtime/src/kmp_global.cpp
  openmp/runtime/src/kmp_runtime.cpp
  openmp/runtime/src/kmp_settings.cpp
  openmp/runtime/test/affinity/kmp-affinity-reset.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125993.430751.patch
Type: text/x-patch
Size: 16331 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220519/1b8f75a7/attachment.bin>


More information about the Openmp-commits mailing list