LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Pak, Anne O (anne.o.pak_at_[hidden])
Date: 2003-05-12 15:46:30


Hello:

I have a mex function that i'm calling from a MATLAB script.

In this MEX function, I make many different MPI calls.

Recently, my MEX function has been crashing MATLAB whenever it encounters a
call to MPI_Barrier.

In the past, I have written many MEX functions that called MPI_Barrier, with
no problems.

The only difference between this MEX function and the other ones is that I
am now declaring some of the variable to be static. Is there some sort of
correlation between static variables and MPI_Barrier that I am not aware of?

(If I take out the call to MPI_Barrier, then some of my programs work fine,
but then there are some other programs where I also need to call MPI_Reduce.
In those programs, I *have* to call MPI_Barrier before calling MPI_Reduce,
but calling MPI_Barrier is crashing MATLAB. Without calling MPI_Barrier
prior to caling MPI_Reducing, MATLAB is also crashing because the processors
are not synchronized when I call MPI_Reduce. Big dilemma here!!!)

Any help or comments are most welcomed!

Thank you,

Anne

___________________________________________________
Anne Pak, L1-50
Building 153 2G8
1111 Lockheed Martin Way
Sunnyvale, CA 94089
(408) 742-4369 (W)
(408) 742-4697 (F)