- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page