Commit Graph

6 Commits

Author SHA1 Message Date
George Grzegorz Pawelczak
41df105ff5 Fix compilation of hwloc 2019-12-11 16:50:14 +00:00
Gleb Popov
7ab834a58b hwloc: Include Linux or FreeBSD symbols depending on OS we are compiling on. 2019-06-19 22:11:17 +04:00
TensorFlower Gardener
fc5a98c8e4 Merge pull request from wdirons:fix_hwloc_build_for_non_x86_platforms
PiperOrigin-RevId: 236378802
2019-03-01 14:55:42 -08:00
William D. Irons
7c18a18a5f 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.
2019-02-28 17:48:27 +00:00
William D. Irons
2290c64967 Fix hwloc build for non x86 platforms
Commit a6bf9c8476 yesterday triggered the building of hwloc in TensorFlow.
While many platforms (windows, mac, android) were excluded from building
hwloc, others like ppc64le and raspberry pi still tried to build hwloc.

This fails because hwloc references x86 specific files. Instead of excluding
those platforms from building with hwloc, lets add conditions to only include
the x86 files during a build on the x86 platform. This might enable the
other platforms to still take advantage of hwloc function.
2019-02-27 22:18:12 +00:00
Gunhan Gulsoy
c7fd42e2d5 Fixes for hwloc build files.
PiperOrigin-RevId: 232033559
2019-02-01 14:06:42 -08:00