Skip to content

Commit

Permalink
Construct topologies and hook up aot_test for pjrt_c_api.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 531310241
  • Loading branch information
pschuh authored and jax authors committed May 11, 2023
1 parent d8c487b commit 6e81814
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jax/_src/xla_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,4 +694,11 @@ def using_pjrt_c_api(backend=None):

# TODO(parkers): Get rid of this in favor of a generic way to get topologies.
def make_pjrt_tpu_topology(topology_name=None, **kwargs):
if xla_extension_version >= 153:
# TODO(b/261484192): Make a system for lazily loading libtpu.so and call
# that inside make_tfrt_tpu_c_api_device_topology.
get_backend() # Properly initialize libtpu.so.
return xla_client.make_tfrt_tpu_c_api_device_topology(
topology_name, **kwargs
)
raise NotImplementedError('make_pjrt_tpu_topology is not implemented')

0 comments on commit 6e81814

Please sign in to comment.