Re: [OMPI users] Problem with MPI_Request, MPI_Isend/recv and MPI_Wait/Test

2011-05-23 Thread George Bosilca
On May 20, 2011, at 03:25 , David Büttner wrote: > Hello, > > thanks for the quick answer. I am sorry that I forgot to mention this: I did > compile OpenMPI with MPI_THREAD_MULTIPLE support and test if required == > provided after the MPI_Thread_init call. > >> I do not see any mechanism for

Re: [OMPI users] Problem with MPI_Request, MPI_Isend/recv and MPI_Wait/Test

2011-05-20 Thread David Büttner
Hello, thanks for the quick answer. I am sorry that I forgot to mention this: I did compile OpenMPI with MPI_THREAD_MULTIPLE support and test if required == provided after the MPI_Thread_init call. I do not see any mechanism for protecting the accesses to the requests to a single thread? Wh

Re: [OMPI users] Problem with MPI_Request, MPI_Isend/recv and MPI_Wait/Test

2011-05-19 Thread George Bosilca
David, I do not see any mechanism for protecting the accesses to the requests to a single thread? What is the thread model you're using? >From an implementation perspective, your code is correct only if you >initialize the MPI library with MPI_THREAD_MULTIPLE and if the library >accepts. Other

[OMPI users] Problem with MPI_Request, MPI_Isend/recv and MPI_Wait/Test

2011-05-19 Thread David Büttner
Hello, I am working on a hybrid MPI (OpenMPI 1.4.3) and Pthread code. I am using MPI_Isend and MPI_Irecv for communication and MPI_Test/MPI_Wait to check if it is done. I do this repeatedly in the outer loop of my code. The MPI_Test is used in the inner loop to check if some function can be c