Skip to content

Commit 8f48ac8

Browse files
ybaturinaGoogle-ML-Automation
authored andcommitted
Build JAX artifacts only in CPU pools for RBE configurations.
PiperOrigin-RevId: 839788470
1 parent 307bca0 commit 8f48ac8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.bazelrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ common:rbe --spawn_strategy=remote,worker,standalone,local
396396
common:rbe --remote_download_toplevel
397397
test:rbe --test_env=USER=anon
398398

399+
common:rbe_cpu_pool --repo_env=REMOTE_GPU_TESTING=0
400+
common:rbe_gpu_pool --repo_env=REMOTE_GPU_TESTING=1
401+
399402
# RBE configs for Linux x86
400403
# Set the remote worker pool
401404
common:rbe_linux_x86_64_base --remote_instance_name=projects/tensorflow-testing/instances/default_instance
@@ -416,7 +419,7 @@ common:rbe_linux_x86_64 --config=rbe_linux_x86_64_base
416419
common:rbe_linux_x86_64 --config=ci_linux_x86_64
417420

418421
common:rbe_linux_x86_64_cuda_common --config=rbe_linux_x86_64_base
419-
common:rbe_linux_x86_64_cuda_common --repo_env=REMOTE_GPU_TESTING=1
422+
common:rbe_linux_x86_64_cuda_common --config=rbe_gpu_pool
420423

421424
common:rbe_linux_x86_64_cuda12 --config=rbe_linux_x86_64_cuda_common
422425
common:rbe_linux_x86_64_cuda12 --config=ci_linux_x86_64_cuda12

ci/build_artifacts.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ if [[ "${allowed_artifacts[@]}" =~ "${artifact}" ]]; then
109109
# Build the artifact.
110110
python build/build.py build --wheels="$artifact" \
111111
--bazel_options=--config="$bazelrc_config" $bazel_remote_cache \
112+
--bazel_options=--config=rbe_cpu_pool \
112113
--bazel_startup_options="$bazel_startup_options" \
113114
--python_version=$JAXCI_HERMETIC_PYTHON_VERSION \
114115
$cuda_version_flag \
115-
--verbose --detailed_timestamped_log --use_new_wheel_build_rule \
116+
--verbose --detailed_timestamped_log \
116117
--output_path="$JAXCI_OUTPUT_DIR" \
117118
$artifact_tag_flags
118119

@@ -121,10 +122,11 @@ if [[ "${allowed_artifacts[@]}" =~ "${artifact}" ]]; then
121122
if [[ "$JAXCI_ARTIFACT_TYPE" == "release" ]]; then
122123
python build/build.py build --wheels="$artifact" \
123124
--bazel_options=--config="$bazelrc_config" $bazel_remote_cache \
125+
--bazel_options=--config=rbe_cpu_pool \
124126
--bazel_startup_options="$bazel_startup_options" \
125127
--python_version=$JAXCI_HERMETIC_PYTHON_VERSION \
126128
$cuda_version_flag \
127-
--verbose --detailed_timestamped_log --use_new_wheel_build_rule \
129+
--verbose --detailed_timestamped_log \
128130
--output_path="$JAXCI_OUTPUT_DIR" \
129131
$artifact_tag_flags --bazel_options=--repo_env=ML_WHEEL_VERSION_SUFFIX="$JAXCI_WHEEL_RC_VERSION"
130132
fi

0 commit comments

Comments
 (0)