Debugging MPICH2 windows

Hi,

I’ve just started using pgdbg to debug MPI CFD code. It might be a very naive question but please refere me to relevent doc or older posts if there is any.

Is it possible to debug a program that is Built using MPICH2 under window, or the debugger only supports MSMPI? if it is possible is there any tutorial or step by step manual for debugging under windows using MPICH2.

Any help is greatly appriciated

Sina

Hi Sina,

Currently, the Window’s PGDBG only supports MSMPI. You can link your production code with MPICH2, but just not debug it.

  • Mat

Thank you for your reply.

I’ve installed the HPC Pack 2008 SDK and compiled the following simple mpi program:

program hello
include ‘mpif.h’
integer ierr, myproc
call mpi_init(ierr)
call mpi_comm_rank(MPI_COMM_WORLD, myproc, ierr)
print *, “Hello world! I’m node”, myproc
call mpi_finalize(ierr)

end

using the command
pgf95 -Mmpi=msmpi -g C:/tmp/test.f90 -o c:/tmp/test.exe

on pgi workstation 10.9. Then tried

pgdbg -mpi:c:/win_hpc_pack/bin/mpiexec.exe -n 2 C:/tmp/test.exe

which launches the debugger and I can set preakpoints however the two processes terminate after the call to call mpi_init(ierr). Is the something wrong with the above procedure? I have also checked the msmpi installation and it works fine. I am also using the win xp pro 32bit

Hi shaeri,

Sorry for the late reply. I needed to ask our Tools Engineers about this.

It turns out that is is a known problem with the PGDBG driver on Windows that was introduced in the 10.4 release. A fix will be available in 11.0 release later this year.

The work around is to downgrade to the 10.3 or use Portland Visual Studio (PVF) to launch the debug session. (PVF doesn’t use the pgdbg driver directly).

I do apologize for the inconvenience.

  • Mat

Thank you for your help,
I downgraded to 10.3 and it works fine now