PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Using pgdbg in parallel
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
lionel@predsci.com



Joined: 07 Nov 2008
Posts: 17
Location: San Diego, CA

PostPosted: Mon Aug 30, 2010 3:06 pm    Post subject: Using pgdbg in parallel Reply with quote

Hi,

I'm starting pgdbg in this way to debug my Fortran program:

mpirun -np 4 -dbg=pgdbg mas_0.2.1.3_dbg


but pgdbg only reports one process (see screenshot) and when I check the number of processors with mpi_comm_size I always get one.

What am I doing wrong? Thanks!

Cheers,

RL
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Mon Aug 30, 2010 5:39 pm    Post subject: Reply with quote

Hi,

Which version of PGI, pgdbg?
What OS?

Please try the following program and let us know if you still get 1 process.

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


Hongyon
Back to top
View user's profile
lionel@predsci.com



Joined: 07 Nov 2008
Posts: 17
Location: San Diego, CA

PostPosted: Tue Aug 31, 2010 9:54 am    Post subject: Reply with quote

Hi,

pgf90 10.6-0 64-bit target on x86-64 Linux -tp gh-64
pgdbg 10.6-0

I'm running Debian Squeeze.

The "Hello world" program shows 4 processors, my program, which is of course much more complex, only one.
Maybe because I'm using modules.
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Tue Aug 31, 2010 9:57 am    Post subject: Reply with quote

MPI_Init() is where it spawns the processes. If you can narrow down and give us a small program, perhaps we can see what the problem is.

Hongyon
Back to top
View user's profile
lionel@predsci.com



Joined: 07 Nov 2008
Posts: 17
Location: San Diego, CA

PostPosted: Tue Aug 31, 2010 3:52 pm    Post subject: Reply with quote

I discovered something very interesting (or at least I think so). To run my program, I need to provide an argument. If I don't provide the argument, the 4 processes are indeed initiated by MPI_Init(), but of course my internal error checking does not allow me to continue the run.
But this is true also with your "Hello world" program, although no argument is necessary to run it.

If I load

mpirun -np 4 -dbg=pgdbg hello

and type

run myargument

PI_Init() will not initiate 4 processes but only one.
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