debugging in MPI linux

debugging in MPI linux

Dear all,

I work in intel fortran linux environment so I usually debug with simple write(*,*) and PAUSE in my code.

I have seen that this way is not possible with MPI. When I try to insert a PAUSE in may code I get:

PAUSE prompt> To continue from background, execute 'kill -15 5620'
To continue from background, execute 'kill -15 5621'

Do yuo know another and a better way to debug in MPI in linux?

Thanks a lot

4 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

If you are using Intel MPI you can use GDB


Use this option to run <executable> under the GNU* debugger. For example:

$ mpiexe.hydra -gdb -n <# of processes> <executable>




Intel Developer Support


Dear K.,

I am running openMPI with Intel.

I am not able to recognize the -gdb command.

do i have to use it when i compile or when i run the program?

Thanks a lot

Note that OpenMPI has an excellent FAQ on debugging:

You must include -g in the mpifort options if you want to step into your application and view source code.  You should prefer the gdb which comes with current versions of ifort.

Intel Forums can't take the place of the application specific FAQs and forums, which are excellent in the case of openmpi.

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui