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

Jayesh Krishna jayesh at mcs.anl.gov
Mon Mar 17 14:24:15 CDT 2008


Hi,
 Please use the multithreaded channel on windows (mpiexec ... -channel mt
... prog.exe) for multithreaded MPI apps.

Regards,
Jayesh
 
  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of trymelz trymelz
Sent: Monday, March 17, 2008 2:02 PM
To: mpich-discuss at mcs.anl.gov
Subject: [mpich-discuss] MPI_INIT_THREAD doesn't work properly under windows


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
<http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs> your homepage.

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


More information about the mpich-discuss mailing list