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 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 ^_^)<BR> <BR>> From: jsquyres_at_[hidden]<BR>> To: users_at_[hidden]<BR>> Date: Mon, 28 Sep 2009 11:28:31 -0400<BR>> Subject: Re: [OMPI users] How to create multi-thread parallel program using thread-safe send and recv?<BR>> <BR>> On Sep 27, 2009, at 1:45 PM, guosong wrote:<BR>> <BR>> > Hi Loh,<BR>> > I used MPI_Init_thread(&argc,&argv, MPI_THREAD_MULTIPLE, &provided); <BR>> > in my program and got provided = 0 which turns out to be the <BR>> > MPI_THREAD_SINGLE. Does this mean that I can not use <BR>> > MPI_THREAD_MULTIPLE model?<BR>> <BR>> Correct.<BR>> <BR>> To get Open MPI to support MPI_THREAD_MULTIPLE, you need to configure <BR>> and build it with the --enable-mpi-threads switch to OMPI's ./ <
BR>> configure script. We don't build MPI_THREAD_MULTIPLE support by <BR>> default because it does add some performance overhead.<BR>> <BR>> -- <BR>> Jeff Squyres<BR>> jsquyres_at_[hidden]<BR>> <BR>> _______________________________________________<BR>> users mailing list<BR>> users_at_[hidden]<BR>> 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_--
|