Skip to content

Commit

Permalink
[XLA:Python] Fix build failure on non-linux platforms.
Browse files Browse the repository at this point in the history
Don't call the transfer manager registration code if we haven't included the header.

PiperOrigin-RevId: 720189214
  • Loading branch information
hawkinsp authored and Google-ML-Automation committed Jan 27, 2025
1 parent b8a356a commit a1f85b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xla/python/xla.cc
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ NB_MODULE(xla_extension, m) {
BuildTracebackSubmodule(m);
BuildMlirSubmodule(m);
BuildCustomCallShardingPybindAPI(m);
#if defined(__linux__)
aux::RegisterTransferServerTypes(m);
#endif // defined(__linux__)

// The following uses python bindings for PyClient defined above using
// pybind11, and hence needs pybind11::module_ (not just nanobind::module_).
Expand Down

0 comments on commit a1f85b7

Please sign in to comment.