Hi all,
I need to start a parallel program from matlab. I have a
+ a manager program which is written in c and has mexFunction
interface (compiled with mex wrapper around mpicc)
+ a worker program which is written in c (compiled using regular
mpicc wrappers.)
The manager spawns the workers. After lamboot'ing from the shell, I
call manager from matlab prompt. the first call runs to completion.
Subsequent calls to manager return with the following error message
-----------------------------------------------------------------------------
It seems that at least one rank invoked MPI_INIT after invoking
MPI_FINALIZE. MPI can not be re-initialized after MPI_FINALIZE has
been called. The process was PID 28477 on host motek.
It was probably rank (unknown) on MPI_COMM_WORLD, but I can't say that for
sure...
-----------------------------------------------------------------------------
If I use 'clear functions' in matlab prompt between the subsequent
calls, then everything seems to be fine.
I am using LAM/MPI: 7.1.2 and Matlab Version 7.1.0.183 (R14) Service Pack 3.
I do not want to clear functions. 'clear manager' sometimes works but
sometimes returns with a segmentation violation error.
What can I do? Any suggestions?
Best wishes
|