Changes between Version 23 and Version 24 of MessagePassing
- Timestamp:
- 09/13/13 20:21:46 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MessagePassing
v23 v24 7 7 * `$message` 8 8 * an abstract, immutable datatype representing a message 9 * `$ message $message_pack(int source, int dest, int tag, void *data, int size)`9 * `$pure $message $message_pack(int source, int dest, int tag, void *data, int size)` 10 10 * creates a new message, copying data from the specified buffer 11 * ` int $message_source($message message)`11 * `$pure int $message_source($message message)` 12 12 * returns the message source 13 * ` int $message_tag($message message)`13 * `$pure int $message_tag($message message)` 14 14 * returns the message tag 15 * ` int $message_dest($message message)`15 * `$pure int $message_dest($message message)` 16 16 * returns the message destination 17 * ` int $message_size($message message)`17 * `$pure int $message_size($message message)` 18 18 * returns the message size 19 19 * `void $message_unpack($message message, void *buf, int size)` … … 21 21 * `$comm` 22 22 * an abstract, immutable datatype representing a communicator value, which encapsulates a set of message channels between every pair of processes in a list of processes 23 * `$ comm $comm_create(int nprocs, $proc procs[])`23 * `$pure $comm $comm_create(int nprocs, $proc procs[])` 24 24 * creates a new comm from the given sequence of processes, by allocating memory and copying the process sequence; the new comm has no messages 25 * ` int $comm_nprocs($comm comm)`25 * `$pure int $comm_nprocs($comm comm)` 26 26 * returns the number of processes associated to the comm 27 * `$p roc $comm_getProc($comm comm, int rank)`27 * `$pure $proc $comm_getProc($comm comm, int rank)` 28 28 * returns the rank-th proc in the comm 29 * `$ comm $comm_enqueue($comm comm, $message message)`29 * `$pure $comm $comm_enqueue($comm comm, $message message)` 30 30 * adds the message to the comm (or, more precisely, returns a new comm value identical to the old except with the message added in the appropriate queue) 31 * ` boolean $comm_probe($comm comm, int source, int dest, int tag)`31 * `$pure boolean $comm_probe($comm comm, int source, int dest, int tag)` 32 32 * returns true iff a matching message exists in comm 33 * ` int $comm_seek($comm comm, int source, int dest, int tag)`33 * `$pure int $comm_seek($comm comm, int source, int dest, int tag)` 34 34 * finds the first matching message and returns its index without modifying comm 35 * `$ message $comm_get($comm comm, int source, int dest, int index)`35 * `$pure $message $comm_get($comm comm, int source, int dest, int index)` 36 36 * returns the message at the index without modifying the comm 37 * `$ comm $comm_dequeue($comm comm, int source, int dest, int index)`37 * `$pure $comm $comm_dequeue($comm comm, int source, int dest, int index)` 38 38 * removes the message at the index from the comm and returns the modified comm 39 * ` int $comm_chan_size($comm comm, int source, int dest)`39 * `$pure int $comm_chan_size($comm comm, int source, int dest)` 40 40 * returns the number of messages from source to dest stored in comm 41 * ` int $comm_total_size($comm comm)`41 * `$pure int $comm_total_size($comm comm)` 42 42 * returns the total number of messages in the comm 43 43 * constants defined:
