--
You received this message because you are subscribed to the Google Groups "mpi4py" group.
To post to this group, send email to mpi...@googlegroups.com.
To unsubscribe from this group, send email to mpi4py+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mpi4py?hl=en.
Abort() should be used as an attempt to forcefully abort a program in
case of an unrecoverable error state.
> But sometimes it doesn't work well .Not all python processes were
> exited. the error says some process didn't finalize.
> I have to kill the process one by one
> So What is the right way to turn down the MPI environment?
>
As Aron said, you don't normally need to "turn-down" MPI when using
mpi4py, as it takes care of finalizing MPI when the Python processes
are about to finish. Of course, you can call MPI.Finalize() yourself
to manually finish MPI. But that means that all your processes have
reached a point where they know no more work has to be done.
--
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
when the master find out the result has been converged,I want to turn down the MPI environment immediately, no matter the other worker have finished their job or not.What should I do? Have to call the Abort?
Yes, do this: Have master send a message to get workers to abort (and
the workers can do sys.exit(0) or just return from whatever they are
doing to end the program). Think about it: Some message must be sent
over the network one way or another to have the node stop the process,
right?
The real lesson though is that efficiency does not matter here. How many
messages do you send during the computation? How much communication
overhead (in percentage) is the shutdown message going to be?
Dag
>
> Regards,
> Liu Zhenhai
>
>
>
> 在 2012年2月28日 上午7:48,Lisandro Dalcin <dal...@gmail.com
> <mailto:dal...@gmail.com>>写道:
>
> On 27 February 2012 09:32, Liu Zhenhai <1989...@gmail.com
> Tel: +54-342-4511594 <tel:%2B54-342-4511594> (ext 1011)
> Tel/Fax: +54-342-4511169 <tel:%2B54-342-4511169>
>
> --
> You received this message because you are subscribed to the Google
> Groups "mpi4py" group.
> To post to this group, send email to mpi...@googlegroups.com
> <mailto:mpi...@googlegroups.com>.
> To unsubscribe from this group, send email to
> mpi4py+un...@googlegroups.com
> <mailto:mpi4py%2Bunsu...@googlegroups.com>.
<mailto:mpi4py@googlegroups.com>.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mpi4py?hl=en.
--
You received this message because you are subscribed to the Google
Groups "mpi4py" group.
To post to this group, send email to mpi...@googlegroups.com.
To unsubscribe from this group, send email to
--
You received this message because you are subscribed to the Google Groups "mpi4py" group.
To post to this group, send email to mpi...@googlegroups.com.
To unsubscribe from this group, send email to mpi4py+unsubscribe@googlegroups.com.