Re: [OMPI users] multi-threaded programming

2011-03-10 Thread Jeff Squyres
On Mar 8, 2011, at 12:34 PM, Eugene Loh wrote: > Let's say you have multi-threaded MPI processes, you request > MPI_THREAD_MULTIPLE and get MPI_THREAD_MULTIPLE, and you use the self,sm,tcp > BTLs (which have some degree of threading support). Is it okay to have an > [MPI_Isend|MPI_Irecv] on

Re: [OMPI users] multi-threaded programming

2011-03-08 Thread Eugene Loh
Durga Choudhury wrote: A follow-up question (and pardon if this sounds stupid) is this: If I want to make my process multithreaded, BUT only one thread has anything to do with MPI (for example, using OpenMP inside MPI), then the results will be correct EVEN IF #1 or #2 of Eugene holds

Re: [OMPI users] multi-threaded programming

2011-03-08 Thread Durga Choudhury
A follow-up question (and pardon if this sounds stupid) is this: If I want to make my process multithreaded, BUT only one thread has anything to do with MPI (for example, using OpenMP inside MPI), then the results will be correct EVEN IF #1 or #2 of Eugene holds true. Is this correct? Thanks

[OMPI users] multi-threaded programming

2011-03-08 Thread Eugene Loh
Let's say you have multi-threaded MPI processes, you request MPI_THREAD_MULTIPLE and get MPI_THREAD_MULTIPLE, and you use the self,sm,tcp BTLs (which have some degree of threading support). Is it okay to have an [MPI_Isend|MPI_Irecv] on one thread be completed by an MPI_Wait on another