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

Definition at line 11 of file moc_barrier_ppu.c.

References __attribute__(), moc_node_handle_ppu_struct::comm_size, moc_message_envelope_struct::flags, IMOC_BARRIER_TAG, IMOC_EA_REMOTE_QUEUE, IMOC_EA_REMOTE_QUEUE_ENTRY, IMOC_get_entry(), IMOC_getFreeEntry(), IMOC_LS_REMOTE_QUEUE, MEMCPY_GET_TRESHOLD, MOC_COMM_SELF, MOC_COMM_WORLD, MOC_ERR_COMM, MOC_ERR_INTERN, moc_ppu_thread_count, moc_spu_thread_list, node_handle, moc_node_handle_ppu_struct::queue_size, moc_node_handle_ppu_struct::rank, moc_spu_thread_struct::speid, and moc_message_envelope_struct::value.

Here is the call graph for this function:

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

Sending branch

Receiving Branch

Definition at line 9 of file moc_bcast.c.

References MOC_BCAST_TAG, MOC_COMM_SELF, MOC_ISend(), MOC_Recv(), MOC_Wait(), node_handle, and moc_node_handle_ppu_struct::rank.

Here is the call graph for this function:


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