LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Lei_at_[hidden]
Date: 2005-08-27 22:57:37


Hi,

I have an MPI server which opens a port, prints out the port name,
and waits for connection. My client, in C, will use the printed
port name as its argument to connect to the server and send
a message to the server. The reason I do not use published
names is that my call to MPI_Lookup_name() would crash
(see my earlier emails; that's a different problem).

Now my above server and client work fine until I made
the client a MEX function called from Matlab. Now
the sever will crash with the following error:
losangeles[48]% mpirun -np 1 View3d_server
MPI_SERVER available at n0:i11:323
**** before MPI_Comm_accept ...
MPI_Comm_accept: mismatched run-time flags: Bad address (rank 0,
MPI_COMM_WORLD)
Rank (0, MPI_COMM_WORLD): Call stack within LAM:
Rank (0, MPI_COMM_WORLD): - MPI_Comm_accept()
Rank (0, MPI_COMM_WORLD): - main()
-----------------------------------------------------------------------------
One of the processes started by mpirun has exited with a nonzero exit

And the MEX client will crash with the following error:
>> mex_client()
*** port_name: n0:i11:323
Rank (0, MPI_COMM_WORLD): Call stack within LAM:
Rank (0, MPI_COMM_WORLD): - MPI_Comm_connect()
Rank (0, MPI_COMM_WORLD): - main()
MPI_Comm_connect: unclassified: Too many open files (rank 0, MPI_COMM_WORLD)

My client (C or MEX) is very simple and it does not open any files.
My LAM (7.1.1) was built with the options:

--without-threads --with-memory-manager=none

Any suggestions on how to solve this problem? Has anybody
actually done this before?

Thanks a lot for your help!

-Lei