LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Mark McGann (mark_mcgann_at_[hidden])
Date: 2006-07-21 12:55:15


Hello everyone,

Is there any function call in lam-mpi to check if the lam deamon is running
that won't call exit?

I have found that MPI_Init calls exit if it cannot contact the lam daemon.
While I believe this behavior is within the MPI specifications it causes
problems in the enviroment I'm working in. Specifically I have a program
that supports both MPI, PVM and single processor runs all in the same
executable. So my code can be thought of as

if (InitializeMPI()) RunMPI();
else if (InitializePVM()) RunPVM();
else RunSingle();

The InitializeMPI function would then call MPI_Init. Most MPI
implimentations will return a failure code if MPI can't be initialized,
however lam-mpi calls exit instead. This causes issues for users who want
to run with PVM or single processor and don't have lamd running.

This is the basis for my question, as I'd like to have some method of
checking if the program can be run in MPI mode without forcing the program
to exit if it can't.

-Thanks in advance
-Mark McGann
-OpenEye Scientific Software