l***@yahoo.com
2008-08-29 06:09:13 UTC
Hi all,
I'm trying to write a program that combines MPI and OpenMP, that
basically does the following:
I have 2 threads running in each process, one does some work, the
other waits for a change in a linked list that the first thread uses.
When there is a change in the linked list, this thread will tell other
such threads in the other processes, so that they can update their
linked list.
I guess what I'm really after is whether it is possible to have one
thread in one process communicate with another thread in another
process, when certain conditions are met.
If this is not possible, I'm wondering if using MPI_Isend and
MPI_Irecv can achieve the same goal, that is, instead of periodically
polling each process on whether the list has changed (which is what
I'm doing now using MPI_Send and MPI_Recv), have the process with the
changed list tell the other processes only when there is a change. If
there is no change, the processes will continue doing their work using
the existing list.
Thank you.
Regards,
Rayne
I'm trying to write a program that combines MPI and OpenMP, that
basically does the following:
I have 2 threads running in each process, one does some work, the
other waits for a change in a linked list that the first thread uses.
When there is a change in the linked list, this thread will tell other
such threads in the other processes, so that they can update their
linked list.
I guess what I'm really after is whether it is possible to have one
thread in one process communicate with another thread in another
process, when certain conditions are met.
If this is not possible, I'm wondering if using MPI_Isend and
MPI_Irecv can achieve the same goal, that is, instead of periodically
polling each process on whether the list has changed (which is what
I'm doing now using MPI_Send and MPI_Recv), have the process with the
changed list tell the other processes only when there is a change. If
there is no change, the processes will continue doing their work using
the existing list.
Thank you.
Regards,
Rayne