Changes between Version 7 and Version 8 of MessagePassing


Ignore:
Timestamp:
07/12/13 09:29:01 (13 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MessagePassing

    v7 v8  
    157157What should these datatypes be?
    158158
    159 * `$message` : an abstract datatype
     159* `$message`
     160 * an abstract datatype
    160161* `$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
    161163* `int $message_source($message * message)`
     164 * returns the message source
    162165* `int $message_tag($message * message)`
     166 * returns the message tag
    163167* `int $message_dest($message * message)`
     168 * returns the message destination
    164169* `int $message_size($message * message)`
     170 * returns the message size
    165171* `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
    167175* `$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
    168179* `int $comm_nprocs($comm * comm)`
     180 * returns the number of processes associated to the comm
    169181* `$proc * $comm_procs($comm * comm)`
     182 * returns a pointer to the procs array in comm
    170183* `void $comm_enqueue($comm * comm, $message * message)`
     184 * adds the message to the comm
    171185* `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
    172189* `$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