[mvapich-discuss] MPI_THREAD_MULTIPLE not working

Justin Luitjens jluitjens at nvidia.com
Wed Oct 16 14:02:11 EDT 2013


Thank you!  

That was the variable I was missing.  

Justin
-----Original Message-----
From: Jonathan Perkins [mailto:perkinjo at cse.ohio-state.edu] 
Sent: Wednesday, October 16, 2013 10:45 AM
To: Justin Luitjens
Cc: mvapich-discuss at cse.ohio-state.edu
Subject: Re: [mvapich-discuss] MPI_THREAD_MULTIPLE not working

On Wed, Oct 16, 2013 at 10:24:09AM -0700, Justin Luitjens wrote:
> I am trying to get MPI_THREAD_MULTIPLE working in mvapich2-2.0a.  I have configured with the following options:
> 
> ./configure --prefix=/home/jluitjens/libs/mvapich/ --enable-threads=runtime --enable-cuda --enable-shared --with-cuda=/shared/apps/cuda/CUDA-v5.5.22

I recommend that you drop the --enable-threads option.

> 
> This configures and builds fine.  However, when I try a simple application I see that I do not get MPI_THREAD_MULTIPLE support.

Did you run with MV2_ENABLE_AFFINITY=0?  If not MPI_Init_thread will not
return MPI_THREAD_MULTIPLE.

> 
> #include <stdio.h>
> int main(int argc, char** argv) {
> 
>   int provided;
>   MPI_Init_thread(&argc,&argv,MPI_THREAD_MULTIPLE,&provided);
>   if(provided!=MPI_THREAD_MULTIPLE) {
>     printf("Error thread level requested: %d, provided: %d\n", MPI_THREAD_MULTIPLE,provided);
>    exit(0);
>   }
> }
> 
> I have also tried the configure option --enable-threads=multiple and that did not help.

This is expected, please see above.  Please let me know if this helps.

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------



More information about the mvapich-discuss mailing list