pyMPI error on mpi.barrier

Dina Ali dina.ali08 at
Sat May 9 17:56:17 EDT 2009

Hello there

I am trying to paralleize GA code using pyMPI. part of the code and and the
error message is as below.
i write the new positions in a file by root (which is mpi.rank = 0) then
other processes are suppose to wait
until the written in the file finishes to start evaluating the objective.
the problem arises in the barrier method...
any ideas on how to do this would be very much appreciated..

for i in xrange(max_iter):
            if (mpi.rank == 0):

            mpi.barrier()  <---------------------------- error is here

error message:
mpi.MPIError: MPI_Error_string: invalid communicator: Input/output error

Thanks very much
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list