Skip to content

Commit

Permalink
Skip remote_transfer_test on cloud TPU.
Browse files Browse the repository at this point in the history
The necessary API isn't yet implemented for Cloud TPU.

PiperOrigin-RevId: 442058546
  • Loading branch information
hawkinsp authored and jax authors committed Apr 15, 2022
1 parent a4b8a44 commit 7ffdac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/remote_transfer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def test_remote_transfer(self):
if not hasattr(dev_a.client, "make_cross_host_receive_buffers"):
# TODO(jheek) remove this once a new version of JAX lib is released
raise unittest.SkipTest("jax-lib doesn't include cross host APIs")
if "libtpu" in jax.local_devices()[0].client.platform_version:
raise unittest.SkipTest("Test does not yet work on cloud TPU")
send_buf = jax.device_put(np.ones((32,)), dev_a)
shapes = [send_buf.xla_shape()]
(tag, recv_buf), = dev_b.client.make_cross_host_receive_buffers(
Expand Down

0 comments on commit 7ffdac0

Please sign in to comment.