[all-commits] [llvm/llvm-project] 2e0257: [OpenMP] Add use of TPAUSE

Terry Wilmarth via All-commits all-commits at lists.llvm.org
Tue Jan 18 08:14:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e02579a76cf4ea3acdc0e076f53ff9cb15fa38f
      https://github.com/llvm/llvm-project/commit/2e02579a76cf4ea3acdc0e076f53ff9cb15fa38f
  Author: Terry Wilmarth <terry.l.wilmarth at intel.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M openmp/runtime/src/kmp.h
    M openmp/runtime/src/kmp_dispatch.cpp
    M openmp/runtime/src/kmp_dispatch.h
    M openmp/runtime/src/kmp_global.cpp
    M openmp/runtime/src/kmp_lock.cpp
    M openmp/runtime/src/kmp_lock.h
    M openmp/runtime/src/kmp_runtime.cpp
    M openmp/runtime/src/kmp_settings.cpp
    M openmp/runtime/src/kmp_tasking.cpp
    M openmp/runtime/src/kmp_wait_release.h
    M openmp/runtime/src/z_Windows_NT_util.cpp

  Log Message:
  -----------
  [OpenMP] Add use of TPAUSE

Add use of TPAUSE (from WAITPKG) to the runtime for Intel hardware,
with an envirable to turn it on in a particular C-state.  Always uses
TPAUSE if it is selected and enabled by Intel hardware and presence of
WAITPKG, and if not, falls back to old way of checking
__kmp_use_yield, etc.

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




More information about the All-commits mailing list