2
我试图使用以下配置从源安装Tensorflow:Tensorflow巴泽尔构建失败 - 不产生巴泽勒-bin目录
- NVIDIA GTX 1070
- UBUNTU 16.04
- CUDA 8.0
- Cudnn V5.0
我遵循了here以下步骤:
- 安装巴泽勒
- 安装依赖
- 安装CUDA支持
./configure
与CUDA 8.0支持bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
这一步之后,据我所知,应该有一个bazel-bin
目录,以便我可以随后执行
$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
# The name of the .whl file will depend on your platform.
$ sudo pip install /tmp/tensorflow_pkg/tensorflow-0.10.0rc0-py2-none-any.whl
但是,没有这样的目录。
我有一种感觉,这个错误信息可能与它有关吗?
ERROR: /usr/local/lib/python2.7/dist-packages/tensorflow_clone/tensorflow/contrib/rnn/BUILD:45:1: error while parsing .d file: /home/volcart/.cache/bazel/_bazel_volcart/62dff5ffffc63bcd8a9350984645e0be/execroot/tensorflow_clone/bazel-out/local_linux-opt/bin/tensorflow/contrib/rnn/_objs/python/ops/_lstm_ops_gpu/tensorflow/contrib/rnn/kernels/lstm_ops_gpu.cu.pic.d (No such file or directory).
nvcc warning : option '--relaxed-constexpr' has been deprecated and replaced by option '--expt-relaxed-constexpr'.
In file included from third_party/gpus/cuda/include/cuda_runtime.h:78:0,
from <command-line>:0:
third_party/gpus/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 5.3 are not supported!
#error -- unsupported GNU version! gcc versions later than 5.3 are not supported!
在重新执行bazel build ...
我发现这...
WARNING: /usr/local/lib/python2.7/dist-packages/tensorflow/util/python/BUILD:11:16: in includes attribute of cc_library rule //util/python:python_headers: 'python_include' resolves to 'util/python/python_include' not in 'third_party'. This will be an error in the future.
我还要补充这...
$ bazel version
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016 (1469783392)
Build timestamp: 1469783392
Build timestamp as int: 1469783392
“GCC版本高于5.3不支持!”听起来像是一个非常明确的错误信息给我...... – talonmies
@talonmies同意,我唯一的疑问是,它包括一个'contrib'目录的路径。虽然,我想这仍然可能导致整个事情失败,现在尝试不同的版本 –
@talonmies原来是一个权限问题 - Doh!总是似乎是一个权限问题'sudo bazel build ...' –