![]() |
(git:ec11232)
|
#include "../mpiwrap/cp_mpi.h"Go to the source code of this file.
Data Structures | |
| struct | dbm_dist_1d_t |
| Internal struct for storing a one dimensional distribution. More... | |
| struct | dbm_distribution_t |
| Internal struct for storing a two dimensional distribution. More... | |
Functions | |
| void | dbm_distribution_new (dbm_distribution_t **dist_out, const int fortran_comm, const int nrows, const int ncols, const int row_dist[nrows], const int col_dist[ncols]) |
| Creates a new two dimensional distribution. | |
| void | dbm_distribution_hold (dbm_distribution_t *dist) |
| Increases the reference counter of the given distribution. | |
| void | dbm_distribution_release (dbm_distribution_t *dist) |
| Decreases the reference counter of the given distribution. | |
| void | dbm_distribution_row_dist (const dbm_distribution_t *dist, int *nrows, const int **row_dist) |
| Returns the rows of the given distribution. | |
| void | dbm_distribution_col_dist (const dbm_distribution_t *dist, int *ncols, const int **col_dist) |
| Returns the columns of the given distribution. | |
| int | dbm_distribution_stored_coords (const dbm_distribution_t *dist, const int row, const int col) |
| Returns the MPI rank on which the given block should be stored. | |
| void dbm_distribution_new | ( | dbm_distribution_t ** | dist_out, |
| const int | fortran_comm, | ||
| const int | nrows, | ||
| const int | ncols, | ||
| const int | row_dist[nrows], | ||
| const int | col_dist[ncols] | ||
| ) |
Creates a new two dimensional distribution.
Definition at line 102 of file dbm_distribution.c.
| void dbm_distribution_hold | ( | dbm_distribution_t * | dist | ) |
Increases the reference counter of the given distribution.
Definition at line 135 of file dbm_distribution.c.
| void dbm_distribution_release | ( | dbm_distribution_t * | dist | ) |
Decreases the reference counter of the given distribution.
Definition at line 144 of file dbm_distribution.c.
| void dbm_distribution_row_dist | ( | const dbm_distribution_t * | dist, |
| int * | nrows, | ||
| const int ** | row_dist | ||
| ) |
Returns the rows of the given distribution.
Definition at line 158 of file dbm_distribution.c.
| void dbm_distribution_col_dist | ( | const dbm_distribution_t * | dist, |
| int * | ncols, | ||
| const int ** | col_dist | ||
| ) |
Returns the columns of the given distribution.
Definition at line 169 of file dbm_distribution.c.
| int dbm_distribution_stored_coords | ( | const dbm_distribution_t * | dist, |
| const int | row, | ||
| const int | col | ||
| ) |
Returns the MPI rank on which the given block should be stored.
Definition at line 180 of file dbm_distribution.c.