[mpich-discuss] MPI_INIT_THREAD doesn't work properly under windows
trymelz trymelz
trymelz at yahoo.com
Mon Mar 17 15:05:07 CDT 2008
I see your point. I will change it to
elseif(plevel . e. I_THREAD_SERIALIZED)then
Thanks.
----- Original Message ----
From: Rusty Lusk <lusk at mcs.anl.gov>
To: mpich-discuss at mcs.anl.gov
Sent: Monday, March 17, 2008 2:36:01 PM
Subject: Re: [mpich-discuss] MPI_INIT_THREAD doesn't work properly under windows
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.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080317/d6dab341/attachment.htm>
More information about the mpich-discuss
mailing list