首页 > 解决方案 > 如何使用 mpirun 并行运行 6 个进程?

问题描述

我收到了这个错误

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-processingmpi

解决方案


看起来您的代码没有调用该MPI_Init()函数。也许您可以分享您的代码或在简单的 hello world 上重现错误(例如此处)?


推荐阅读