首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Tensorflow bazel生成失败-不生成bazel-bin目录

Tensorflow bazel生成失败-不生成bazel-bin目录
EN

Stack Overflow用户
提问于 2016-08-04 17:02:57
回答 1查看 3.6K关注 0票数 3

我试图使用以下配置从源代码中安装Tensorflow:

  • NVIDIA GTX 1070
  • UBUNTU 16.04
  • 库达8.0
  • Cudnn v5.0

我遵循了这里中的以下步骤

  • 安装bazel
  • 已安装依赖项
  • 安装了CUDA支持
  • 支持CUDA 8.0的./configure
  • bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

在这个步骤之后,据我所知,应该有一个bazel-bin目录,以便我可以随后执行

代码语言:javascript
运行
复制
$ 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

然而,没有这样的目录。

我觉得这个错误信息可能和它有什么关系吗?

代码语言:javascript
运行
复制
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 ...时我发现了这个.

代码语言:javascript
运行
复制
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.

我还要加上这个..。

代码语言:javascript
运行
复制
$ 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
EN

回答 1

Stack Overflow用户

发布于 2016-08-04 17:17:10

bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

导致权限问题。添加sudo

sudo bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38773402

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档