Changes between Version 7 and Version 8 of MessagePassing
- Timestamp:
- 07/12/13 09:29:01 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MessagePassing
v7 v8 157 157 What should these datatypes be? 158 158 159 * `$message` : an abstract datatype 159 * `$message` 160 * an abstract datatype 160 161 * `$message $message_create(int source, int dest, int tag, void *data, int size)` 162 * creates a new message, allocated memory and copying data from the specified buffer 161 163 * `int $message_source($message * message)` 164 * returns the message source 162 165 * `int $message_tag($message * message)` 166 * returns the message tag 163 167 * `int $message_dest($message * message)` 168 * returns the message destination 164 169 * `int $message_size($message * message)` 170 * returns the message size 165 171 * `void $message_destroy($message * message)` 166 * `$comm` : an abstract datatype 172 * destroys the message, deallocating whatever was allocated in its creation 173 * `$comm` 174 * an abstract datatype representing a communicator, or set of message channels between every pair of processes in a set of processes 167 175 * `$comm $comm_create(int nprocs, $proc * procs)` 176 * creates a new comm from the given sequence of processes, by allocating memory and copying the process sequences; the new comm has no messages 177 * `void $comm_destroy($comm * comm)` 178 * destroys the comm, deallocating whatever was allocated in its constructions 168 179 * `int $comm_nprocs($comm * comm)` 180 * returns the number of processes associated to the comm 169 181 * `$proc * $comm_procs($comm * comm)` 182 * returns a pointer to the procs array in comm 170 183 * `void $comm_enqueue($comm * comm, $message * message)` 184 * adds the message to the comm 171 185 * `boolean $comm_probe($comm * comm, int source, int dest, int tag)` 186 * returns true iff a matching message exists in comm 187 * `$message * $comm_seek($comm * comm, int source, int dest, int tag)` 188 * finds the first matching message and returns pointer to it without modifying comm 172 189 * `$message * $comm_dequeue($comm * comm, int source, int dest, int tag)` 173 174 175 190 * find the first matching message, removes it from comm, and returns pointer to message 191 * `int $comm_chan_size($comm * comm, int source, int dest)` 192 * returns the number of messages from source to dest stored in comm 193 * `int $comm_total_size($comm * comm)` 194 * returns the total number of messages in the comm 195 * constants defined: 196 * `int $COMM_ANY_SOURCE` 197 * `int $COMM_ANY_TAG` 198 199 200
