Fix hwloc build for ppc64le

This commit: https://github.com/tensorflow/tensorflow/commit/41df105#diff-6fb2e55075204b47da0460ea2abbc32f
broke the CPU unit test build for ppc64le. The compiler error was:

.../libexternal_Shwloc_Slibhwloc.so: error: undefined reference to 'hwloc_linux_component'
.../libexternal_Shwloc_Slibhwloc.so: error: undefined reference to 'hwloc_linuxio_component'

These methods are defined in topology-linux.c, adding the necessary bazel select statement
so they are built during a ppc64le build.
This commit is contained in:
William D. Irons 2020-01-06 20:15:42 +00:00
parent 30a3ac9cf3
commit c639437db1
1 changed files with 4 additions and 0 deletions

View File

@ -262,6 +262,10 @@ cc_library(
"hwloc/topology-x86.c", "hwloc/topology-x86.c",
"include/private/cpuid-x86.h", "include/private/cpuid-x86.h",
], ],
"@org_tensorflow//tensorflow:linux_ppc64le": [
"hwloc/topology-linux.c",
"include/hwloc/linux.h",
],
"@org_tensorflow//tensorflow:freebsd": [ "@org_tensorflow//tensorflow:freebsd": [
"hwloc/topology-freebsd.c", "hwloc/topology-freebsd.c",
"hwloc/topology-x86.c", "hwloc/topology-x86.c",