[mvapich-discuss] Fwd: MPI_Init_thread failed!
Hari Subramoni
subramoni.1 at osu.edu
Wed Jun 18 08:49:35 EDT 2014
The users problem was solved by setting "MV2_ENABLE_AFFINITY=0"
Hari.
---------- Forwarded message ----------
From: Hari Subramoni <subramoni.1 at osu.edu>
Date: Wed, Jun 18, 2014 at 7:55 AM
Subject: Re: [mvapich-discuss] MPI_Init_thread failed!
To: Ji Wan <wanjime at gmail.com>
Cc: "mvapich-discuss at cse.ohio-state.edu" <mvapich-discuss at cse.ohio-state.edu
>
Hi Wan,
Did you use the "MV2_ENABLE_AFFINITY=0" environment variable when launching
your application? If not, can you please try re-running your application
with "MV2_ENABLE_AFFINITY=0" set?
Please refer to the following section of our userguide for more information
on how to run MVAPICH2 in multi-threaded environments.
http://mvapich.cse.ohio-state.edu/support/user_guide_mvapich2-2.0rc2.html#x1-780006.16
Regards,
Hari.
On Wed, Jun 18, 2014 at 2:41 AM, Ji Wan <wanjime at gmail.com> wrote:
> Dear Developers,
>
> I have an project which needs to using MPI functions in multiple threads,
> so I have compiled `mvapich2-2.0rc2` using the following flags:
>
> ./configure LDFLAGS='-lstdc++' \
> --disable-f77 --disable-fc \
> --enable-g=dbg --disable-fast \
> --enable-threads=multiple \
> --enable-cuda --with-cuda=/usr/local/cuda
>
>
> At the beginning of my program, I have the following code:
>
> int provided;
> int ret = MPI_Init_thread(&argc, &argv, *MPI_THREAD_MULTIPLE*, &
> *provided*);
>
>
> But after this code executed, the value in *provided* is
> *MPI_THREAD_SINGLE*, not *MPI_THREAD_MULTIPLE*.
>
> Would you please giving some suggestion to this problem?
>
> --
> Best regards,
> Wan Ji
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20140618/333ed34b/attachment-0001.html>
More information about the mvapich-discuss
mailing list