Yet Another eXchange Tool 0.11.2
|
exchange map declarations More...
Go to the source code of this file.
Typedefs | |
typedef struct Xt_xmap_iter_ * | Xt_xmap_iter |
Enumerations | |
enum | xt_reorder_type { XT_REORDER_NONE , XT_REORDER_SEND_UP , XT_REORDER_RECV_UP } |
exchange map declarations
methods to be used with Xt_xmap
Definition in file xt_xmap.h.
typedef struct Xt_xmap_iter_* Xt_xmap_iter |
enum xt_reorder_type |
void xt_xmap_delete | ( | Xt_xmap | xmap | ) |
destructor for an exchange map
[in] | xmap | exchange map to be destroyed |
Definition at line 86 of file xt_xmap.c.
void xt_xmap_get_destination_ranks | ( | Xt_xmap | xmap, |
int * | ranks ) |
gets the ranks of processes that will require data from the local process in an exchange operation
[in] | xmap | exchange map |
[out] | ranks | ranks of processes that will require data from the local process in an exchange operation |
Definition at line 71 of file xt_xmap.c.
Xt_xmap_iter xt_xmap_get_in_iterator | ( | Xt_xmap | xmap | ) |
gets an iterator for all local incoming messages of an exchange operation
[in] | xmap | exchange map |
Definition at line 91 of file xt_xmap.c.
int xt_xmap_get_max_dst_pos | ( | Xt_xmap | xmap | ) |
gives an upper limit to the range of positions in the dst part of the transfer_pos,
[in] | xmap | exchange map |
Definition at line 139 of file xt_xmap.c.
int xt_xmap_get_max_src_pos | ( | Xt_xmap | xmap | ) |
gives an upper limit to the range of positions in the src part of the transfer_pos,
[in] | xmap | exchange map |
Definition at line 135 of file xt_xmap.c.
int xt_xmap_get_num_destinations | ( | Xt_xmap | xmap | ) |
gets the number of processes that will require data from the local process in an exchange operation
[in] | xmap | exchange map |
Definition at line 61 of file xt_xmap.c.
int xt_xmap_get_num_sources | ( | Xt_xmap | xmap | ) |
gets the number of processes from which the local process will require data in an exchange operation
[in] | xmap | exchange map |
Definition at line 66 of file xt_xmap.c.
Xt_xmap_iter xt_xmap_get_out_iterator | ( | Xt_xmap | xmap | ) |
gets an iterator for all local outgoing messages of an exchange operation
[in] | xmap | exchange map |
Definition at line 96 of file xt_xmap.c.
void xt_xmap_get_source_ranks | ( | Xt_xmap | xmap, |
int * | ranks ) |
gets the ranks of processes from which the local process will require data in an exchange operation
[in] | xmap | exchange map |
[out] | ranks | ranks of processes from which the local process will required data in an exchange operation |
Definition at line 76 of file xt_xmap.c.
void xt_xmap_iterator_delete | ( | Xt_xmap_iter | iter | ) |
destructor for an exchange map iterator
[in] | iter | exchange map iterator |
Definition at line 130 of file xt_xmap.c.
int xt_xmap_iterator_get_num_transfer_pos | ( | Xt_xmap_iter | iter | ) |
get the number of positions returned by xt_xmap_iterator_get_transfer_pos of the current item of an exchange map iterator
[in] | iter | exchange map iterator |
Definition at line 116 of file xt_xmap.c.
int xt_xmap_iterator_get_num_transfer_pos_ext | ( | Xt_xmap_iter | iter | ) |
get the number of position extents returned by xt_xmap_iterator_get_transfer_pos_ext of the current item of an exchange map iterator
[in] | iter | exchange map iterator |
Definition at line 126 of file xt_xmap.c.
int xt_xmap_iterator_get_rank | ( | Xt_xmap_iter | iter | ) |
gets the rank of the current item of an exchange map iterator
[in] | iter | exchange map iterator |
Definition at line 106 of file xt_xmap.c.
int const * xt_xmap_iterator_get_transfer_pos | ( | Xt_xmap_iter | iter | ) |
get the positions of all element of the current item of an exchange map iterator
[in] | iter | exchange map iterator |
Definition at line 111 of file xt_xmap.c.
const struct Xt_pos_ext * xt_xmap_iterator_get_transfer_pos_ext | ( | Xt_xmap_iter | iter | ) |
get the position ranges of all element of the current item of an exchange map iterator as position extents
[in] | iter | exchange map iterator |
Definition at line 122 of file xt_xmap.c.
int xt_xmap_iterator_next | ( | Xt_xmap_iter | iter | ) |
sets an exchange map iterator to the next item
[in,out] | iter | exchange map iterator |
Definition at line 101 of file xt_xmap.c.
Xt_xmap xt_xmap_reorder | ( | Xt_xmap | xmap, |
enum xt_reorder_type | type ) |
reorder positions
[in] | xmap | exchange map |
[in] | type | reorder pattern to be used |
Definition at line 143 of file xt_xmap.c.
Xt_xmap xt_xmap_reorder_custom | ( | Xt_xmap | xmap, |
enum xt_reorder_type | type, | ||
Xt_config | config ) |
reorder positions
[in] | xmap | exchange map |
[in] | type | reorder pattern to be used |
[in] | config | configuration object for custom settings |
Definition at line 148 of file xt_xmap.c.
Xt_xmap xt_xmap_spread | ( | Xt_xmap | xmap, |
int | num_repetitions, | ||
const int | src_displacements[num_repetitions], | ||
const int | dst_displacements[num_repetitions] ) |
inflate the pattern stored in the exchange map by repeating it at provided offsets
[in] | xmap | exchange map |
[in] | num_repetitions | number of repetitions of the given data map |
[in] | src_displacements | displacements for source repetitions |
[in] | dst_displacements | displacements for destination repetitions |
Definition at line 159 of file xt_xmap.c.
Xt_xmap xt_xmap_update_positions | ( | Xt_xmap | xmap, |
const int * | src_positions, | ||
const int * | dst_positions ) |
updates positions of indices
[in] | xmap | exchange map |
[in] | src_positions | updated positions for all source indices |
[in] | dst_positions | updated positions for all destination indices |
Definition at line 154 of file xt_xmap.c.