On Thu, 11 Dec 2003 chellapp_at_[hidden] wrote:
> For some reason my MPI program hangs.It doesn't give any
> segmentation fault.Does anyone have any idea about this sort of hanging
> situation and why it happens.Sorry for the vague question.
Unfortunately, the vagueness of your questions makes it just about
impossible to answer in any meaningful way. :-)
There are many reasons why an MPI program could hang. Common reasons
that are specific to MPI include:
- Mismatched sends and receives (e.g., wrong tag, wrong communicator)
- Assumption of buffering by the MPI implementation (e.g., not careful
about ordering blocking sends and receives)
- Race condition in your code resulting in message passing mismatch
- Unmatched sends
Your best bet is to crack open the debugger and start looking into where
things are hanging and try to figure out why -- it's going to be highly
dependant upon your specific application.
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|