PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pgdbg only runs on head node
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
werneta



Joined: 11 Apr 2007
Posts: 5

PostPosted: Wed Apr 11, 2007 6:34 pm    Post subject: pgdbg only runs on head node Reply with quote

Hi -

I've been trying to use pgdbg (6.0) on multiprocess programs (MPI), and it invariably doesn't work. It works perfectly when I try to run a single process on the head node. Whenever I try to run it on any node other than the head node (via the -np x or -nolocal flags), pgdbg sits for about a minute, then I get something like:

Quote:
GDBG 6.0-2 x86 (Cluster, 64 CPU)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
***Reading DWARFv2 Information.
node2: Connection refused
- accept: client init: Bad file descriptor
ERROR: CANNOT LOAD /home/class07/werneta/homework/week4/prob1/cgm.


I have used a machinefile to specify which nodes to use and I get the connection refused on every node I try, so I don't think it's an error with any one node.

Also, whenever I leave off the -nolocal flag, pgdbg runs fine until it hits the MPI_Init() function call in the source code. Then it gives me:

Quote:
libnss_files.so.2 loaded by ld-linux.so.2.
node2: Connection refused
- accept: client init: Bad file descriptor
ERROR: New Process (PID 22148, HOST node2) ATTACH FAILED.
ERROR: New Process (PID 22148, HOST node2) IGNORED.
ERROR: New Process (PID 23700, HOST node3) IGNORED.
ERROR: New Process (PID 24539, HOST node4) IGNORED.


In this case, however, the program continues to run, but only on a single node.

Thanks in advance,

Tom
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Apr 11, 2007 8:25 pm    Post subject: Reply with quote

Hi Tom,

How are you invoking PGDBG? It sounds like you might be trying something like "pgdbg mpirun -np 2 a.out" or "mpirun -n 2 pgdbg a.out". You need to run it from the mpirun script using the "-dbg" flag, ex "mpirun -np 2 -dbg=pgdbg a.out".

Note that PGDBG MPI support is only available with the PGI CDK version of MPICH.

- Mat
Back to top
View user's profile
werneta



Joined: 11 Apr 2007
Posts: 5

PostPosted: Wed Apr 11, 2007 9:08 pm    Post subject: Reply with quote

Thanks for the quick reply. I'm running it as you described, i.e. "mpirun -np 4 -dbg=pgdbg a.out".

I'm taking a course in parallel computing, so I'm not sure of the mpich version we're using.

- Tom
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Apr 12, 2007 2:25 pm    Post subject: Reply with quote

Hi Tom,

I'm not really sure then. Are you able to run your program without the debugger?

- Mat
Back to top
View user's profile
werneta



Joined: 11 Apr 2007
Posts: 5

PostPosted: Thu Apr 12, 2007 2:40 pm    Post subject: Reply with quote

Mat -

Every program I've written runs fine without the debugger.

Tom
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
Goto page 1, 2  Next
Page 1 of 2

 
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