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: jsquy...@cisco.com
> To: us...@open-mpi.org
> 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
> jsquy...@cisco.com
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users

_________________________________________________________________
Messenger安全保护中心,免费修复系统漏洞,保护Messenger安全!
http://im.live.cn/safe/

Reply via email to