[go: nahoru, domu]

Skip to content

Commit

Permalink
Add configs for Tensorflow Kokoro builds on XLA
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 642423212
  • Loading branch information
ddunl authored and tensorflower-gardener committed Jun 12, 2024
1 parent 7817eb0 commit cd6a8f5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions third_party/xla/build_tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ class BuildType(enum.Enum):
JAX_CPU = enum.auto()
JAX_GPU = enum.auto()

TENSORFLOW_CPU = enum.auto()
TENSORFLOW_GPU = enum.auto()


@dataclasses.dataclass(frozen=True, **_KW_ONLY_IF_PYTHON310)
class DockerImage:
Expand Down Expand Up @@ -308,6 +311,36 @@ def nvidia_gpu_build_with_compute_capability(
),
)

_TENSORFLOW_CPU_BUILD = Build(
type_=BuildType.TENSORFLOW_CPU,
repo="tensorflow/tensorflow",
docker_image=_DEFAULT_IMAGE,
configs=("release_cpu_linux", "rbe_linux_cpu"),
target_patterns=("//tensorflow/compiler/...",),
tag_filters=("-no_oss", "-gpu"),
options=dict(
verbose_failures=True,
test_output="errors",
override_repository="xla=/github/xla",
profile="profile.json.gz",
),
)

_TENSORFLOW_GPU_BUILD = Build(
type_=BuildType.TENSORFLOW_GPU,
repo="tensorflow/tensorflow",
docker_image=_DEFAULT_IMAGE,
configs=("release_gpu_linux", "rbe_linux_cuda"),
target_patterns=("//tensorflow/compiler/...",),
tag_filters=("-no_oss", "+gpu"),
options=dict(
verbose_failures=True,
test_output="errors",
override_repository="xla=/github/xla",
profile="profile.json.gz",
),
)

_KOKORO_JOB_NAME_TO_BUILD_MAP = {
"tensorflow/xla/linux/arm64/build_cpu": _CPU_ARM64_BUILD,
"tensorflow/xla/linux/cpu/build_cpu": _CPU_X86_BUILD,
Expand All @@ -317,6 +350,8 @@ def nvidia_gpu_build_with_compute_capability(
"tensorflow/xla/linux/github_continuous/build_cpu": _CPU_X86_BUILD,
"tensorflow/xla/jax/cpu/build_cpu": _JAX_CPU_BUILD,
"tensorflow/xla/jax/gpu/build_gpu": _JAX_GPU_BUILD,
"tensorflow/xla/tensorflow/cpu/build_cpu": _TENSORFLOW_CPU_BUILD,
"tensorflow/xla/tensorflow/gpu/build_gpu": _TENSORFLOW_GPU_BUILD,
}


Expand Down

0 comments on commit cd6a8f5

Please sign in to comment.