首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >tensorflow缺少mpi_rendezvous_mgr的依赖项声明

tensorflow缺少mpi_rendezvous_mgr的依赖项声明
EN

Stack Overflow用户
提问于 2017-11-10 03:28:07
回答 1查看 649关注 0票数 1

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

用于编译的命令:

代码语言:javascript
复制
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package --verbose_failures

看到的错误:

代码语言:javascript
复制
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 (和其他论坛)上寻找解决方案,但找不到太多信息。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2017-11-15 00:12:04

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

代码语言:javascript
复制
...

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

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

https://stackoverflow.com/questions/47210033

复制
相关文章

相似问题

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