Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] How to create multi-thread parallel program using thread-safe send and recv?
From: guosong (guosong1079_at_[hidden])
Date: 2009-09-28 11:48:23


Oh, thanks. I found that mpich2/gnu supports MPI_THREAD_MULTIPLE by default on my server. So if it supports MPI_THREAD_MULTIPLE, does it mean that I can run the program without segmentation fault (if there is no other bugs ^_^)
 
> From: jsquyres_at_[hidden]
> To: users_at_[hidden]
> Date: Mon, 28 Sep 2009 11:28:31 -0400
> Subject: Re: [OMPI users] How to create multi-thread parallel program using thread-safe send and recv?
>
> On Sep 27, 2009, at 1:45 PM, guosong wrote:
>
> > Hi Loh,
> > I used MPI_Init_thread(&argc,&argv, MPI_THREAD_MULTIPLE, &provided);
> > in my program and got provided = 0 which turns out to be the
> > MPI_THREAD_SINGLE. Does this mean that I can not use
> > MPI_THREAD_MULTIPLE model?
>
> Correct.
>
> To get Open MPI to support MPI_THREAD_MULTIPLE, you need to configure
> and build it with the --enable-mpi-threads switch to OMPI's ./
> configure script. We don't build MPI_THREAD_MULTIPLE support by
> default because it does add some performance overhead.
>
> --
> Jeff Squyres
> jsquyres_at_[hidden]
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
                                               
_________________________________________________________________
Messenger°²È«±£»¤ÖÐÐÄ£¬Ãâ·ÑÐÞ¸´ÏµÍ³Â©¶´£¬±£»¤Messenger°²È«£¡
http://im.live.cn/safe/
--_dbb68c85-cb63-4db8-b4b3-45bdada45139_
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: 8bit

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Oh, thanks. I found that mpich2/gnu supports MPI_THREAD_MULTIPLE by default on&nbsp;my server. So if&nbsp;it supports MPI_THREAD_MULTIPLE, does it mean that I can run the program without segmentation fault (if there is no other bugs ^_^)<BR>&nbsp;<BR>&gt; From: jsquyres_at_[hidden]<BR>&gt; To: users_at_[hidden]<BR>&gt; Date: Mon, 28 Sep 2009 11:28:31 -0400<BR>&gt; Subject: Re: [OMPI users] How to create multi-thread parallel program using thread-safe send and recv?<BR>&gt; <BR>&gt; On Sep 27, 2009, at 1:45 PM, guosong wrote:<BR>&gt; <BR>&gt; &gt; Hi Loh,<BR>&gt; &gt; I used MPI_Init_thread(&amp;argc,&amp;argv, MPI_THREAD_MULTIPLE, &amp;provided); <BR>&gt; &gt; in my program and got provided = 0 which turns out to be the <BR>&gt; &gt; MPI_THREAD_SINGLE. Does this mean that I can not use <BR>&gt; &gt; MPI_THREAD_MULTIPLE model?<BR>&gt; <BR>&gt; Correct.<BR>&gt; <BR>&gt; To get Open MPI to support MPI_THREAD_MULTIPLE, you need to configure <BR>&gt; and build it with the --enable-mpi-threads switch to OMPI's ./ <
BR>&gt; configure script. We don't build MPI_THREAD_MULTIPLE support by <BR>&gt; default because it does add some performance overhead.<BR>&gt; <BR>&gt; -- <BR>&gt; Jeff Squyres<BR>&gt; jsquyres_at_[hidden]<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; users mailing list<BR>&gt; users_at_[hidden]<BR>&gt; http://www.open-mpi.org/mailman/listinfo.cgi/users> <br /><hr />ʹÓÃÐÂÒ»´ú Windows Live Messenger ÇáËɽ»Á÷ºÍ¹²Ïí£¡ <a href='http://www.windowslive.cn/Messenger/' target='_new'>Á¢¿ÌÏÂÔØ£¡</a></body>
</html>
--_dbb68c85-cb63-4db8-b4b3-45bdada45139_--