[Beowulf] mpich2 mutex

William Gropp gropp at mcs.anl.gov
Fri Jul 29 14:21:54 EDT 2005


At 04:31 PM 7/28/2005, Ik Ben wrote:
>Hi,
>I'm reading the book Using MPI-2 of William Gropp .
>In the book they explains how to create a mutex for RMA using the
>lock/unlock method.
>They speek about the functions MPE_Counter_nxtval etc... to create the mutex.
>
>I'm french and have it very difficult to merge the necessary pieces
>together correctly.
>
>Can someone please show an example of the minimum code for creating a
>mutex using mpi-2 (planning to use Suse, but I don't think that this
>matters...).

The implementation of fetch and add with the scalable tree approach is 
(thanks to Rajeev Thakur) included in the MPICH2 tests in the file 
mpich2/test/mpi/rma/fetchandadd_tree.c .  The simpler but non-scalable 
version is available in fetchandadd.c in the same directory.

Bill


>I know that this seems like I'm to lazy to do my own homework, but it's 
>not.....
>
>Thanks in advance;
>Gilles Roman.
>
>_______________________________________________
>Beowulf mailing list, Beowulf at beowulf.org
>To change your subscription (digest mode or unsubscribe) visit 
>http://www.beowulf.org/mailman/listinfo/beowulf

William Gropp
http://www.mcs.anl.gov/~gropp 

_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf



More information about the Beowulf mailing list