Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] get the process Id of mpirun
From: Ralph Castain (rhc_at_[hidden])
Date: 2009-11-14 18:32:57

Not that I know of - mpirun may not even be on the same node!

And we certainly don't pass that information to the remote processes.

On Nov 14, 2009, at 8:05 AM, Kritiraj Sajadah wrote:

> Dear All,
> I am trying to get the process Id of Mpirun from within my MPI application. When i use getpid() and getppid(), i get the PID of my application and the PID of "orted --daemonize -mca..." respectively.
> Is there a way to get the PID of the mpirun? In this case, it looks like it is the grandparent of the application.
> Thank you
> Regards,
> Raj
> _______________________________________________
> users mailing list
> users_at_[hidden]