Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Killing openmpi job via programming language
From: Ralph Castain (rhc_at_[hidden])
Date: 2010-07-14 07:23:48


You need to call MPI_Abort, not Finalize. Finalize will block until all procs call it. Abort causes the system to terminate everyone immediately.

On Jul 14, 2010, at 5:06 AM, Saygin Arkan wrote:

> Hi,
> I'm executing an mpi program, using C++ bindings.
>
> if( rank == 0)
> {
> ...
> ...
> if( !isFileFound){
> LOG4CXX_ERROR(log, "There are not any files related with the given probe ID");
> Finalize();
> exit(0);
> }
> }
>
> Here rank zero stops working, I print the error log. But the program continues to run.
> How can I make it stop somehow?
> program just halts for minutes and then I kill it manually.
>
>
> --
> Saygin
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users