【问题标题】:Bazel build tensorflow: The specified --crosstool_top '//third_party/gpus/crosstool:crosstool' is not a valid cc_toolchain_suite ruleBazel build tensorflow:指定的 --crosstool_top '//third_party/gpus/crosstool:crosstool' 不是有效的 cc_toolchain_suite 规则
【发布时间】:2017-03-13 20:46:03
【问题描述】:

我正在按照此处列出的步骤进行操作: http://www.nvidia.com/object/gpu-accelerated-applications-tensorflow-installation.html

我有一台 GTX 860M 和 Ubuntu 16.04。

我完全按照说明进行操作,除了第 5 步。我指向了我的实际 python 二进制位置 (/usr/bin/python2.7)。

这是我得到的错误:

daniel@beepboop:~/tensorflow$ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
WARNING: /home/daniel/tensorflow/tensorflow/tensorflow.bzl:477:26: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
WARNING: /home/daniel/tensorflow/tensorflow/tensorflow.bzl:490:24: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
ERROR: The specified --crosstool_top '//third_party/gpus/crosstool:crosstool' is not a valid cc_toolchain_suite rule.

我在这里错过了什么?

【问题讨论】:

    标签: python linux ubuntu tensorflow


    【解决方案1】:

    删除这一行“$ git reset --hard 70de76e”,并为除GPU支持之外的所有问题选择“N”,如下所示:

    $ ./配置
    您想构建支持 Google Cloud Platform 的 TensorFlow 吗? [是/否] n
    您想构建支持 Hadoop 文件系统的 TensorFlow 吗? [是/否] n
    您想构建支持 OpenCL 的 TensorFlow 吗? [是/否] n
    您想构建支持 GPU 的 TensorFlow 吗? [是/否] 是

    【讨论】:

      【解决方案2】:

      在第 5 步中未执行 git reset 会导致一切正常。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2022-06-15
        • 2022-11-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-01-17
        • 2017-03-06
        相关资源
        最近更新 更多