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:
parent
2290c64967
commit
7c18a18a5f
3
third_party/hwloc/static-components.h
vendored
3
third_party/hwloc/static-components.h
vendored
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user