Fix Hwloc API Incompatibility
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Tue, 25 Apr 2017 19:04:07 +0000 (19:04 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Tue, 25 Apr 2017 19:04:07 +0000 (19:04 +0000)
commit20e13d4a3868fff5beac98e3ea78ac51d61738ea
treedafea12c7bd24c8e27b993f3706ab752d87d6237
parent356822fe7b0632b9b542831645cdf123f812164f
Fix Hwloc API Incompatibility

Older Hwloc libraries (< 1.10.0) don't offer the HWLOC_OBJ_NUMANODE nor
HWLOC_OBJ_PACKAGE types. Instead they are named HWLOC_OBJ_NODE and
HWLOC_OBJ_SOCKET instead. This patch just defines the newer names based on
the older names when using an older Hwloc.

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

llvm-svn: 301349
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_affinity.cpp