-
Notifications
You must be signed in to change notification settings - Fork 35
Description
PS C:\WINDOWS\system32> d:
PS D:> cd D:\CPlus\tensorflow\tensorflow-windows-build-script-master
PS D:\CPlus\tensorflow\tensorflow-windows-build-script-master> $parameterString = "-c opt --config=cuda --define=no_tens
orflow_py_deps=true --copt=-nvcc_options=disable-warnings //tensorflow:libtensorflow_cc.so --verbose_failures"
.\build.ps1
-BazelBuildParameters $parameterString
-BuildCppAPI -ReserveSource -ReserveVenv
Select a Tensorflow version:
[1] 1 - v1.13.1 [2] 2 - v1.12.0 [3] 3 - v1.11.0 [S] Select another version [?] 帮助 (默认值为“1”): 2
Found chocolatey installed.
Unable to find pacman.
Which version would you like to install? [Default version: 20180531.0.0]:
Chocolatey v0.10.13
Installing the following packages:
msys2
By installing you accept licenses for the packages.
msys2 v20180531.0.0 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.
Chocolatey installed 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Warnings:
- msys2 - msys2 v20180531.0.0 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.
Found patch installed.
Found unzip installed.
Found bazel installed.
Make sure you have installed same version of bazel 0.15.0.
Are you sure you want to PROCEED? [y/n]: y
Found git installed.
Found python installed.
Make sure you have installed same version of python 3.6.7.
Are you sure you want to PROCEED? [y/n]: y
Checking out files: 100% (13330/13330), done.
HEAD is now at a5c2e20205 [TF:XLA] Support broadcasting in the lowering of SoftmaxCrossEntropyWithLogits.
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
Checking out files: 100% (13330/13330), done.
Note: checking out 'tags/v1.12.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b
HEAD is now at a6d8ffae09 Fix a bug in tpu.py and xla.py that while creating an identity node for control input edges under rewrite context, the parent control flow context is lost. (#23446)
Removing .tf_configure.bazelrc
Removing tensorflow/tf_exported_symbols_msvc.lds
Removing third_party/eigen_half.patch
Removing tools/python_bin_path.sh
warning: tensorflow/workspace.bzl has type 100644, expected 100755
Starting local Bazel server and connecting to it...
.................
INFO: Starting clean.
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.15.0 installed.
Do you wish to build TensorFlow with Apache Ignite support? [Y/n]: y
Apache Ignite support will be enabled for TensorFlow.
Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.
Do you wish to build TensorFlow with ROCm support? [y/N]: n
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: y
CUDA support will be enabled for TensorFlow.
Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]: 10.0
Please specify the location where CUDA 10.0 toolkit is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0]:
Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7]:
Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 6.1
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]: /arch:AVX2
Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]: Y
Eigen strong inline overridden.
Starting local Bazel server and connecting to it...
.................
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
ERROR: Skipping '//tensorflow:libtensorflow_cc.so': error loading package 'tensorflow': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': C:/users/z&j/_bazel_z&j/o66lyhoe/external/local_config_cuda/cuda (Directory not empty)
WARNING: Target pattern parsing failed.
ERROR: error loading package 'tensorflow': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': C:/users/z&j/_bazel_z&j/o66lyhoe/external/local_config_cuda/cuda (Directory not empty)
INFO: Elapsed time: 14.295s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
currently loading: tensorflow
(venv) PS D:\CPlus\tensorflow\tensorflow-windows-build-script-master>
Always encounter this problem, which setting error ?Or this is a bug
vs2015 cuda10.0 cudnn7.3.1 win10,gtx1060,bazel 0.15...tf1.12.0