Skip to content

Commit

Permalink
Windows: Attempt to fix tensorflow#6931
Browse files Browse the repository at this point in the history
Looking at http://ci.tensorflow.org/job/tf-master-win-bzl/303/,
it seems that the ./configure script isn't finishing.

Note that there seem to have been other failures as well,
such as http://ci.tensorflow.org/job/tf-master-win-bzl/302/
Change: 145024905
  • Loading branch information
asimshankar authored and tensorflower-gardener committed Jan 20, 2017
1 parent ff50cae commit 135729a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tensorflow/tools/ci_build/windows/bazel/bazel_test_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,16 @@ function clean_output_base() {
}

function run_configure_for_cpu_build {
# Due to a bug in Bazel: https://github.com/bazelbuild/bazel/issues/2182
# yes "" | ./configure doesn't work on Windows, so we set all the
# environment variables in advance to avoid interact with the script.
export TF_NEED_CUDA=0
if [ -z "$TF_ENABLE_XLA" ]; then
export TF_ENABLE_XLA=0
fi
if [ -z "$CC_OPT_FLAGS" ]; then
export CC_OPT_FLAGS="-march=native"
fi
echo "" | ./configure
}

Expand All @@ -179,6 +188,12 @@ function run_configure_for_gpu_build {
export TF_CUDNN_VERSION=5
export CUDNN_INSTALL_PATH="C:/tools/cuda"
export TF_CUDA_COMPUTE_CAPABILITIES="3.5,5.2"
if [ -z "$TF_ENABLE_XLA" ]; then
export TF_ENABLE_XLA=0
fi
if [ -z "$CC_OPT_FLAGS" ]; then
export CC_OPT_FLAGS="-march=native"
fi
echo "" | ./configure
}

Expand Down

0 comments on commit 135729a

Please sign in to comment.