Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] get the process Id of mpirun
From: Kritiraj Sajadah (ksajadah_at_[hidden])
Date: 2009-11-14 10:05:13


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