PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Debugging MPICH2 windows

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
shaeri



Joined: 05 Jun 2010
Posts: 3

PostPosted: Mon Sep 27, 2010 1:05 pm    Post subject: Debugging MPICH2 windows Reply with quote

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
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5871
Location: The Portland Group Inc.

PostPosted: Mon Sep 27, 2010 1:17 pm    Post subject: Reply with quote

Hi Sina,

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

- Mat
Back to top
View user's profile
shaeri



Joined: 05 Jun 2010
Posts: 3

PostPosted: Tue Sep 28, 2010 8:50 am    Post subject: Reply with quote

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
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5871
Location: The Portland Group Inc.

PostPosted: Wed Sep 29, 2010 4:33 pm    Post subject: Reply with quote

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
Back to top
View user's profile
shaeri



Joined: 05 Jun 2010
Posts: 3

PostPosted: Mon Oct 04, 2010 7:10 am    Post subject: Reply with quote

Thank you for your help,
I downgraded to 10.3 and it works fine now
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group