[mvapich-discuss] MPI_THREAD_MULTIPLE not working
Jonathan Perkins
perkinjo at cse.ohio-state.edu
Wed Oct 16 13:45:24 EDT 2013
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
More information about the mvapich-discuss
mailing list