[mpich-discuss] MPI_INIT_THREAD doesn't work properly under windows

Rusty Lusk lusk at mcs.anl.gov
Mon Mar 17 14:36:01 CDT 2008


Even then you might not get what the code below expects.   The  
"provided" parameter can return a higher level of thread safety than  
requested, which is not an error, and should allow the application to  
proceed.

On Mar 17, 2008, at 2:01 PM, trymelz trymelz wrote:

> Hi,
>
> I have a mixed-language programming project using C and FORTRAN. In  
> the FORTRAN file, I have the following code
>
>         call MPI_INIT_THREAD(MPI_THREAD_SERIALIZED,plevel, impierr)
>         if(impierr.ne.MPI_SUCCESS)then
>           write(*,*)'MPI is not initialized, exit'
>         elseif(plevel .ne. MPI_THREAD_SERIALIZED)then
>           write(*,*)'MPI LEVEL ERROR,exit',plevel
>         endif
> I compiled this project with VC6 and Intel Fortran compiler. When I  
> run it, I get
>
>  MPI LEVEL ERROR,exit           0
>
>
> It seems to me that the MPICH2 doesn't support  
> MPI_THREAD_SERIALIZED under windows.  I did not find any notes  
> about this on the manual, so I am wondering if I am missing  
> something important. Thanks.
>
>
> Linfa
>
> Never miss a thing. Make Yahoo your homepage.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080317/f6114e10/attachment.htm>


More information about the mpich-discuss mailing list