- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
If you are using Intel MPI you can use GDB
-gdb
Use this option to run <executable> under the GNU* debugger. For example:
$ mpiexe.hydra -gdb -n <# of processes> <executable>
Regards,
Kenneth
Intel Developer Support
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Note that OpenMPI has an excellent FAQ on debugging:
http://www.open-mpi.org/faq/?category=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.

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite