Include all x86 defines macros for hwloc

Copied from tensorflow/core/platform/platform.h#L59
Look for both gcc/clang and Visual Studio macros indicating we're compiling
for an x86 device.
This commit is contained in:
William D. Irons 2019-02-28 17:48:27 +00:00
parent 2290c64967
commit 7c18a18a5f

View File

@ -21,7 +21,8 @@ static const struct hwloc_component* hwloc_static_components[] = {
&hwloc_noos_component, &hwloc_xml_component,
&hwloc_synthetic_component, &hwloc_xml_nolibxml_component,
&hwloc_linux_component, &hwloc_linuxio_component,
#ifdef PLATFORM_IS_X86
#if defined(__x86_64__) || defined(__amd64__) || defined(_M_IX86) || \
defined(_M_X64)
&hwloc_x86_component,
#endif
NULL};