提交 5147b75e 编写于 作者: A Asim Shankar 提交者: gunan

Windows: Attempt to fix #6931

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

(cherry picked from commit 135729a0)
上级 27e61f1b
......@@ -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
}
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册