【问题标题】:tensorflow missing dependency declaration for mpi_rendezvous_mgrtensorflow 缺少 mpi_rendezvous_mgr 的依赖声明
【发布时间】:2017-11-09 19:28:06
【问题描述】:

我正在尝试使用动词和 MPI 支持(无 cuda)在 SL7.3 上编译 tensorflow。 我在尝试使用 bazel 构建时遇到以下错误:

用于编译的命令:

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

看到的错误:

ERROR: /root/tensorflow/tensorflow/contrib/mpi/BUILD:60:1: undeclared inclusion(s) in rule '//tensorflow/contrib/mpi:mpi_rendezvous_mgr':
this rule is missing dependency declarations for the following files included by 'tensorflow/contrib/mpi/mpi_rendezvous_mgr.cc':
  '/root/tensorflow/tensorflow/core/distributed_runtime/tensor_coding.h'.
Target //tensorflow/tools/pip_package:build_pip_package failed to build

有人可以帮我解决这个问题吗?我试图在 stackoverflow(和其他论坛)上寻找解决方案,但找不到太多信息。

谢谢

【问题讨论】:

    标签: tensorflow mpi openmpi


    【解决方案1】:

    您可以尝试在 ..../tensorflow/tensorflow/contrib/mpi/BUILD 文件中添加一行

    ...
    
    cc_library(
        name = "mpi_rendezvous_mgr",
        srcs = ["mpi_rendezvous_mgr.cc"],
        hdrs = ["mpi_rendezvous_mgr.h"],
        deps = [
            ":mpi_msg_proto_cc",
            ":mpi_utils",
            "//tensorflow/core:core_cpu_internal",
            "//tensorflow/core:framework",
            "//tensorflow/core:gpu_runtime",
            "//tensorflow/core:lib",
            "//tensorflow/core:protos_cc",
            "//tensorflow/core:worker_proto_cc",
            "//tensorflow/core/distributed_runtime:base_rendezvous_mgr",
            "//tensorflow/core/distributed_runtime:session_mgr",
            "//tensorflow/core/distributed_runtime:worker_env",
            "//third_party/mpi",
            "//tensorflow/core/distributed_runtime:tensor_coding",   ## <<<<< add this line
        ],
    )
    

    希望对你有帮助,

    BR/thupalo

    【讨论】:

      猜你喜欢
      • 2014-08-12
      • 1970-01-01
      • 2018-08-10
      • 2021-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-25
      相关资源
      最近更新 更多