Parallel processing 如何使用mpirun并行运行6个进程?

Parallel processing 如何使用mpirun并行运行6个进程?,parallel-processing,mpi,Parallel Processing,Mpi,我犯了这个错误 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 n

我犯了这个错误

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笔记本电脑看起来您的代码没有调用
MPI\u Init()
函数。 也许你可以在简单的hello world(ex)上共享你的代码或重现错误