Skip to content

Commit 08da390

Browse files
committed
Clone XLA at head if path to local XLA is not provided
1 parent 042a3dd commit 08da390

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ci/run_bazel_test_cpu_rbe.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ set -exu -o history -o allexport
2525
# Inherit default JAXCI environment variables.
2626
source ci/envs/default.env
2727

28-
# Clone XLA at HEAD.
29-
export JAXCI_CLONE_MAIN_XLA=1
28+
# Clone XLA at HEAD if path to local XLA is not provided
29+
if [[ -z "$JAXCI_XLA_GIT_DIR" ]]; then
30+
export JAXCI_CLONE_MAIN_XLA=1
31+
fi
3032

3133
# Set up the build environment.
3234
source "ci/utilities/setup_build_environment.sh"

ci/run_bazel_test_gpu_rbe.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ set -exu -o history -o allexport
2626
# Inherit default JAXCI environment variables.
2727
source ci/envs/default.env
2828

29-
# Clone XLA at HEAD.
30-
export JAXCI_CLONE_MAIN_XLA=1
29+
# Clone XLA at HEAD if path to local XLA is not provided
30+
if [[ -z "$JAXCI_XLA_GIT_DIR" ]]; then
31+
export JAXCI_CLONE_MAIN_XLA=1
32+
fi
3133

3234
# Set up the build environment.
3335
source "ci/utilities/setup_build_environment.sh"

0 commit comments

Comments
 (0)