Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate TF_BUILD_ENABLE_XLA environment variable into the CI build … #7340

Merged
merged 1 commit into from Feb 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions tensorflow/tools/ci_build/ci_parameterized_build.sh
Expand Up @@ -137,11 +137,14 @@ PARALLEL_GPU_TEST_CMD='//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execut

BENCHMARK_CMD="${CI_BUILD_DIR}/builds/benchmark.sh"

EXTRA_PARAMS=""

export TF_BUILD_ENABLE_XLA=${TF_BUILD_ENABLE_XLA:-0}
if [[ -z $TF_BUILD_ENABLE_XLA ]] || [ $TF_BUILD_ENABLE_XLA == 0 ]; then
BAZEL_TARGET="//tensorflow/... -//tensorflow/compiler/..."
else
BAZEL_TARGET="//tensorflow/compiler/..."
EXTRA_PARAMS="${EXTRA_PARAMS} -e TF_BUILD_ENABLE_XLA=1"
fi

TUT_TEST_DATA_DIR="/tmp/tf_tutorial_test_data"
Expand Down Expand Up @@ -182,6 +185,8 @@ echo " TF_BUILD_INTEGRATION_TESTS=${TF_BUILD_INTEGRATION_TESTS}"
echo " TF_BUILD_RUN_BENCHMARKS=${TF_BUILD_RUN_BENCHMARKS}"
echo " TF_BUILD_DISABLE_GCP=${TF_BUILD_DISABLE_GCP}"
echo " TF_BUILD_OPTIONS=${TF_BUILD_OPTIONS}"
echo " TF_BUILD_ENABLE_XLA=${TF_BUILD_ENABLE_XLA}"


# Function that tries to determine CUDA capability, if deviceQuery binary
# is available on path
Expand Down Expand Up @@ -253,8 +258,6 @@ else
"\"${TF_BUILD_CONTAINER_TYPE}\""
fi

EXTRA_PARAMS=""

# Determine if this is a benchmarks job
RUN_BENCHMARKS=0
if [[ ! -z "${TF_BUILD_RUN_BENCHMARKS}" ]] &&
Expand Down