Event Handlers with pgi

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++.


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