[Openmp-commits] [PATCH] D21441: Teach OpenMP Library to use Hwloc on Windows

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Thu Jun 16 11:48:50 PDT 2016


jlpeyton created this revision.
jlpeyton added reviewers: tlwilmar, AndreyChurbanov.
jlpeyton added a subscriber: openmp-commits.
jlpeyton set the repository for this revision to rL LLVM.

This patch allows a user to enable Hwloc on windows.  There are three main changes in here:
1) kmp.h - Move definitions/declarations out of `KMP_OS_WINDOWS` guard (our
   windows implementation of affinity) because they need to be defined when
   `KMP_USE_HWLOC` is on as well.
2) teach `__kmp_set_system_affinity`, `__kmp_get_system_affinity`,
   `__kmp_get_proc_group`, and `__kmp_affinity_bind_thread` how to use hwloc.
3) teach CMake how to include hwloc when building Windows

Another minor change in here is to make sure that anything under `KMP_USE_HWLOC`
is also guarded by `KMP_AFFINITY_SUPPORTED` as well.  This is to prevent Mac
builds from requiring anything from Hwloc.


Repository:
  rL LLVM

http://reviews.llvm.org/D21441

Files:
  runtime/cmake/config-ix.cmake
  runtime/src/kmp.h
  runtime/src/kmp_ftn_entry.h
  runtime/src/kmp_global.c
  runtime/src/z_Windows_NT_util.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21441.61000.patch
Type: text/x-patch
Size: 10318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160616/d8411a89/attachment.bin>


More information about the Openmp-commits mailing list