PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Event Handlers with pgi

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
aagarwal



Joined: 02 Mar 2006
Posts: 1

PostPosted: Thu Mar 02, 2006 1:09 pm    Post subject: Event Handlers with pgi Reply with quote

Hello All,

I am new to using C++ with MPI.

I have a MPI program which is running in master slave mode. My MPI slave program dies due to its nature and I want to implement timeout event on master side. Does anyone has any suggestions on how that can be done with C++.

Regards
Abhi
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Mar 06, 2006 2:41 pm    Post subject: Reply with quote

Hi Abhi,

Granted, I'm not a MPI expert but I don't believe there is a timeout event. Are you blocking on an "MPI_Wait" call? If this is the case, then consider using the non-blocking "MPI_Test". This means you'll need to change your code to do polling, but you could check the time after each call to MPI_Test to see if the slave has "timed out".

Has any other user encountered this issue?

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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