【问题标题】:How can i run 6 processes in parallel using mpirun?如何使用 mpirun 并行运行 6 个进程?
【发布时间】:2021-05-25 20:00:43
【问题描述】:

我收到了这个错误

It seems that [at least] one of the processes that was started with
mpirun did not invoke MPI_INIT before quitting (it is possible that
more than one process did not invoke MPI_INIT -- mpirun was only
notified of the first one, which was on node n0).

虽然我使用 MPI 运行 6 个进程,因为我只有使用此命令并行的 6 个内核

mpirun -np 6 my_command

2060 RTX 笔记本电脑

【问题讨论】:

    标签: parallel-processing mpi


    【解决方案1】:

    您的代码似乎没有调用MPI_Init() 函数。 也许您可以分享您的代码或在简单的 hello world 上重现错误(例如 here)?

    【讨论】:

      猜你喜欢
      • 2016-10-11
      • 2019-10-17
      • 2020-07-15
      • 2016-07-15
      • 2013-03-12
      • 2011-02-10
      • 2020-07-09
      • 2017-05-31
      • 2013-10-10
      相关资源
      最近更新 更多