Collective Communication
[End-User Documentation]

Collaboration diagram for Collective Communication:

Detailed Description

Communication that involves a group of processes.

A collective operation is normally executed by having all processes in the group call the communication routine, with matching arguments. Since there are no means for creating groups currently implemented, the only available groups are MOC_COMM_WORLD and MOC_COMM_SELF.


Functions

int MOC_Bcast (void *buffer, int count, MOC_Datatype datatype, int root, MOC_Comm comm)
 Broadcasts a message from the process with rank "root" to all other processes of the group.
int MOC_Barrier (MOC_Comm comm)
 Blocks the caller until all processes in the communicator have called it; that is, the call returns at any process only after all members of the communicator have entered the call.


Function Documentation

int MOC_Barrier ( MOC_Comm  comm  ) 

Blocks the caller until all processes in the communicator have called it; that is, the call returns at any process only after all members of the communicator have entered the call.

Parameters:
comm in communicator of message
Return values:
MOC_SUCCESS No error; MPI routine completed successfully.
... error-code

int MOC_Bcast ( void *  buffer,
int  count,
MOC_Datatype  datatype,
int  root,
MOC_Comm  comm 
)

Broadcasts a message from the process with rank "root" to all other processes of the group.

Note:
The broadcast-message can also be received by a MOC_Recv using MOC_BCAST_TAG.
Parameters:
buffer inout starting address of buffer
count in number of elements to be send or received
datatype in Type of elements to be send or received
root in rank of the process who sends the broadcast-message
comm in communicator of message


Generated on Thu Feb 12 13:48:21 2009 for MPI On Cell (Documentation) by  doxygen 1.5.6