[all-commits] [llvm/llvm-project] fe3b24: [OpenMP] Fix norespect affinity bug for Windows

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Wed Dec 9 12:39:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fe3b244ef7c2656c5876ff3f91232406f9854c42
      https://github.com/llvm/llvm-project/commit/fe3b244ef7c2656c5876ff3f91232406f9854c42
  Author: Peyton, Jonathan L <jonathan.l.peyton at intel.com>
  Date:   2020-12-09 (Wed, 09 Dec 2020)

  Changed paths:
    M openmp/runtime/src/kmp.h
    M openmp/runtime/src/kmp_affinity.cpp
    M openmp/runtime/src/kmp_affinity.h

  Log Message:
  -----------
  [OpenMP] Fix norespect affinity bug for Windows

KMP_AFFINITY=norespect was triggering an error because the underlying
process affinity mask was not updated to include the entire machine.
The Windows documentation states that the thread affinities must be
subsets of the process affinity. This patch also moves the printing
(for KMP_AFFINITY=verbose) of whether the initial mask was respected
out of each topology detection function and to one location where the
initial affinity mask is read.

Differential Revision: https://reviews.llvm.org/D92587




More information about the All-commits mailing list