MPI只运行一个进程

时间:2017-06-01 05:50:46

标签: python mpi mpi4py

我试图运行我的hello.py:

from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
print "hello world from process ", rank

使用:

mpiexec  -n 5 python  hello.py

获得:

hello world from process  0
hello world from process  0
hello world from process  0
hello world from process  0
hello world from process  0

我相信我的配置有问题。有什么想法吗?

0 个答案:

没有答案