Skip to content

Commit

Permalink
internal testing infrastructure change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 605135113
  • Loading branch information
j2kun authored and copybara-github committed Feb 8, 2024
1 parent 26247cf commit 39e6346
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

load("@rules_python//python:defs.bzl", "py_library")
load("@rules_python//python:defs.bzl", "py_test")
load("@jaxite//bazel:test_oss.bzl", "cpu_gpu_tpu_test", "gpu_tpu_test", "tpu_test")
load("@jaxite//bazel:test_oss.bzl", "cpu_gpu_tpu_test", "gpu_tpu_test", "multichip_tpu_test")
load("@rules_license//rules:license.bzl", "license")

package(
Expand Down Expand Up @@ -288,7 +288,7 @@ gpu_tpu_test(
],
)

tpu_test(
multichip_tpu_test(
name = "pmap_test",
size = "large",
srcs = ["jaxite/jaxite_bool/pmap_test.py"],
Expand Down
9 changes: 9 additions & 0 deletions bazel/test_oss.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ def tpu_test(name, **kwargs):
deps = kwargs.get("deps", []),
)

def multichip_tpu_test(name, **kwargs):
"""A shim that only generates CPU tests.
Args:
name: the name of the CPU test.
**kwargs: other args passed along to generated rules.
"""
return tpu_test(name, **kwargs)

def cpu_tpu_test(name, **kwargs):
"""A shim that only generates CPU tests.
Expand Down

0 comments on commit 39e6346

Please sign in to comment.