Skip to content

Commit 35c71e0

Browse files
oluptonGoogle-ML-Automation
authored andcommitted
PR #35963: Enable Linux system calls on arm64
Imported from GitHub PR #35963 📝 Summary of Changes Include Linux definitions when compiling for arm64 as well as x86_64. 🎯 Justification Without this, some NUMA-aware operations provided by hwloc do not work on arm64 Linux systems. 🚀 Kind of Contribution 🐛 Bug Fix 🧪 Unit Tests: This fixes `@tsl//tsl/platform:numa_test` on relevant platforms. Copybara import of the project: -- ce7fc4b by Olli Lupton <[email protected]>: Enable Linux system calls on arm64 Merging this change closes #35963 COPYBARA_INTEGRATE_REVIEW=#35963 from olupton:hwloc-arm64 ce7fc4b PiperOrigin-RevId: 853210643
1 parent 36c955d commit 35c71e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/hwloc/hwloc.BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ expand_template(
5151
out = "include/hwloc/autogen/config.h",
5252
substitutions = select({
5353
"@xla//xla/tsl:linux_x86_64": _INCLUDE_HWLOC_AUTOIGEN_CONFIG_H_LINUX_SUBS,
54+
"@xla//xla/tsl:linux_aarch64": _INCLUDE_HWLOC_AUTOIGEN_CONFIG_H_LINUX_SUBS,
5455
"//conditions:default": _INCLUDE_HWLOC_AUTOIGEN_CONFIG_H_COMMON_SUBS,
5556
}),
5657
template = "include/hwloc/autogen/config.h.in",

0 commit comments

Comments
 (0)