[Pympi-users] Fixed gather syntax where pyMPI hangs
Status: Alpha
Brought to you by:
patmiller
From: Julian C. <rjc...@cs...> - 2005-01-28 22:50:29
|
I fixed the previous post by removing if mpi.rank == 0:, I was thinking that the global (gathering) code should only be executed by the master. This code works (using 2 instances of pyMPI on one server): >>> import mpi,os >>> machine = os.uname() >>> machine_name = [] >>> machine_name.append(machine[1]) # now gather >>> global_name = mpi.gather(machine_name) ['ale'] >>> global_name [ 'ale' , 'ale' ] The only odd part is that you get output from ">>> global_name = mpi.gather(machine_name)", which is not really correct.. Julian Cook |