|
| View previous topic :: View next topic |
| Author |
Message |
werneta
Joined: 11 Apr 2007 Posts: 5
|
Posted: Wed Apr 11, 2007 6:34 pm Post subject: pgdbg only runs on head node |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Wed Apr 11, 2007 8:25 pm Post subject: |
|
|
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 |
|
 |
werneta
Joined: 11 Apr 2007 Posts: 5
|
Posted: Wed Apr 11, 2007 9:08 pm Post subject: |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Thu Apr 12, 2007 2:25 pm Post subject: |
|
|
Hi Tom,
I'm not really sure then. Are you able to run your program without the debugger?
- Mat |
|
| Back to top |
|
 |
werneta
Joined: 11 Apr 2007 Posts: 5
|
Posted: Thu Apr 12, 2007 2:40 pm Post subject: |
|
|
Mat -
Every program I've written runs fine without the debugger.
Tom |
|
| Back to top |
|
 |
|
|
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 © 2001, 2002 phpBB Group
|