Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] MPI_Recv MPI_THREAD_MULTIPLE
From: Brian Budge (brian.budge_at_[hidden])
Date: 2012-11-13 10:11:15


On Tue, Nov 13, 2012 at 1:56 AM, 赵印 <yin_zhao_at_[hidden]> wrote:

> I have a problem here.
>
> My program runs perfectly in MPI version 1.6 series, but it would run into
> some problem in MPI version 1.4x series. *Does MPI 1.4x version have a
> bug related in MPI_Recv.*
>
> The log in Node[1] says that "MPI_Recv in node[1] can not probe tag [11]
> from source[0]". But in node [0], the log says it Isend message with Tag
> [11] to dest [1].
>
> int provided;
>
> MPI_Init_thread(&argc, &argv, MPI_THR!
> EAD_MULTIPLE, &provided);if (provided != MPI_THREAD_MULTIPLE){
> printf("Sorry, your MPI library does not provide MPI_THREAD_MULTIPLE\n");
> MPI_Abort(MPI_COMM_WORLD, 0);}
>
> *Both of my 1.6x and 1.4x library do not support MPI_THREAD_MULTIPLE. Is
> this the reason? But why it runs perfect with 1.6x version. *
>
> Thanks very much for your help.
>
>
> Esaon
>
>
> You need to build openmpi by configuring it with the multi-threading
flags. Something like --enable-mpi-thread-multiple. Most distributions
ship openmpi built without these flags.

  Brian