It looks like you have an issue with the compiled application. The error
message from mpirun is from LAM, so that looks ok. But the error messages
from the application are not from LAM - I am assuming they are from the
SUN HPC implementation.
As Sun uses a different "wrapper" compiler than LAM (mpcc vs. mpicc), I
would guess it is more likely that the LAM wrapper compiler is finding the
wrong libmpi. The Sun HPC libraries are usually installed in
/opt/SUNWhpc, so I'm not sure how this could happen with static libraries.
But I could definitely see how it could if LAM is compiled with shared
libraries and your library path is set incorrectly.
I would look at your library setup - looking at the output of
mpicc -showme
might help in finding where the compiler is looking for libraries, as
would looking at your LD_LIBRARY_PATH.
Hope this helps,
Brian
On Wed, 21 May 2003, Blair Christian wrote:
> I'm running a 4 processor sun machine with solaris 9. It actually has
> the SUN hpc library (mpi stuff) installed. I'm using a high end package
> that uses lam, and I get the following message from lam. lamboot works
> fine, mpcc works fine (it's a simple program that just prints out hello
> world from each processor), but then there seems to be a conflict with
> sun's mprun. I decided to run the test suite to duplicate the errors
> there (they compile fine but all throw the same error):
>
> It seems that [at least] one of processes that was started with mpirun
> did not invoke MPI_INIT before quitting (it is possible that more than
> one process did not invoke MPI_INIT -- mpirun was only notified of the
> first one, which was on node n0).
>
> mpirun can *only* be used with MPI programs (i.e., programs that
> invoke MPI_INIT and MPI_FINALIZE). You can use the "lamexec" program
> to run non-MPI programs over the lambooted nodes.
> -----------------------------------------------------------------------------
> a.out: TMRTE_Init: Cannot initialize: the program must be started by
> mprun.: Invalid request
> [unknown MPI_COMM_WORLD unknown] ERROR in MPI_Init: unclassified error:
> RTE_Init_lib: Cannot initialize: the program must be started by mprun.:
> Invalid request
> Fatal error, aborting.
> a.out: TMRTE_Init: Cannot initialize: the program must be started by
> mprun.: Invalid request
> [unknown MPI_COMM_WORLD unknown] ERROR in MPI_Init: unclassified error:
> RTE_Init_lib: Cannot initialize: the program must be started by mprun.:
> Invalid request
> Fatal error, aborting.
> -----------------------------------------------------------------------------
>
>
> Blair
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
|