Re: [OMPI users] How to create multi-thread parallel program using thread-safe send and recv?

2009-09-27 Thread guosong
The reason I asked the background thread is that I need to make MPI calls in this thread and this is also why I got errors in the little testing program. List-Post: users@lists.open-mpi.org Date: Sun, 27 Sep 2009 14:00:00 -0700 From: eugene@sun.com To: us...@open-mpi.org Subject: Re: [OMP

Re: [OMPI users] How to create multi-thread parallel program using thread-safe send and recv?

2009-09-27 Thread Eugene Loh
guosong wrote: 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? Right.  I've not done much multithreaded MPI work.  Someone else on

Re: [OMPI users] How to create multi-thread parallel program using thread-safe send and recv?

2009-09-27 Thread guosong
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? I write a little program to test the multithreading and it worked sometimes

Re: [OMPI users] Is there an "flush()"-like function in MPI?

2009-09-27 Thread Ashley Pittman
There are tools available to allow you to see the "message queues" of a process, this might help you identify why you aren't seeing the messages that you are waiting on complete. One such tool is linked to in my signature, you could also look into TotalView or DDT as well. I would also suggest t