Skip to content

Commit

Permalink
Remove test code that checks for the se_tpu runtime.
Browse files Browse the repository at this point in the history
This runtime no longer exists.

PiperOrigin-RevId: 568242078
  • Loading branch information
hawkinsp authored and jax authors committed Sep 25, 2023
1 parent 5aaa15d commit 69da839
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions jax/_src/test_util.py
Expand Up @@ -323,14 +323,6 @@ def is_cloud_tpu():
return 'libtpu' in xla_bridge.get_backend().platform_version


def is_se_tpu():
return (
is_cloud_tpu() and not xla_bridge.using_pjrt_c_api()
) or xla_bridge.get_backend().platform_version.startswith(
'StreamExecutor TPU'
)


def is_device_tpu_v4():
return jax.devices()[0].device_kind == "TPU v4"

Expand Down
3 changes: 0 additions & 3 deletions tests/aot_test.py
Expand Up @@ -45,9 +45,6 @@ class JaxAotTest(jtu.JaxTestCase):

@jtu.run_on_devices('tpu')
def test_pickle_pjit_lower(self):
if jtu.is_se_tpu():
raise unittest.SkipTest('StreamExecutor not supported.')

def fun(x):
return x * x

Expand Down
2 changes: 0 additions & 2 deletions tests/cache_key_test.py
Expand Up @@ -136,8 +136,6 @@ def test_serialized_compile_options(self):
)
@jtu.skip_on_devices("cpu")
def test_hash_accelerator_devices(self):
if jtu.is_se_tpu():
raise unittest.SkipTest("StreamExecutor not supported.")
if xla_bridge.using_pjrt_c_api():
# TODO(b/290248051): expose PjRtTopologyDesc in PjRt C API.
raise unittest.SkipTest("PjRt C API not yet supported.")
Expand Down

0 comments on commit 69da839

Please sign in to comment.