我试图运行我的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
我相信我的配置有问题。有什么想法吗?