pyMPI error on mpi.barrier

Dina Ali dina.ali08 at googlemail.com
Sat May 9 17:56:55 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):
                update_positions()
                save_GA_pops_iter()

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

error message:
    mpi.barrier()
mpi.MPIError: MPI_Error_string: invalid communicator: Input/output error
(pyMPI_comm_io.c:367)


Thanks very much
Dina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090509/0f107b66/attachment-0001.html>


More information about the Python-list mailing list