#include <assert.h>#include <mpi.h>#include <stdbool.h>#include <stddef.h>#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include "distribution_c.h"#include "verbosity.h"Macros | |
| #define | USE_SLAB_WORKAROUND 0 |
| #define | DEBUG_CONDITION false |
Enumerations | |
| enum | { REDISTRIBUTE_1_TO_3 , REDISTRIBUTE_3_TO_1 , REDISTRIBUTE_2_TO_3 , REDISTRIBUTE_3_TO_2 } |
Functions | |
| static char const * | separator (int i, int n) |
| void | Coord_cube (int myrank, int coord[], distribution_t *d) |
| void | Rank_cube (int *myrank, int coord[], distribution_t *d) |
| void | Coord_x_pencils (int myrank, int coord[], distribution_t *d) |
| void | Rank_x_pencils (int *myrank, int coord[], distribution_t *d) |
| void | Coord_y_pencils (int myrank, int coord[], distribution_t *d) |
| void | Rank_y_pencils (int *myrank, int coord[], distribution_t *d) |
| void | Coord_z_pencils (int myrank, int coord[], distribution_t *d) |
| void | Rank_z_pencils (int *myrank, int coord[], distribution_t *d) |
| void | distribution_init (MPI_Comm comm, const int n[], const int Ndims[], distribution_t *d, const int *rmap, bool debug) |
| void | Custom3D_Dims_create (const int Ndims[], int nproc, int ndims, int dims[]) |
| void | distribution_init_explicit (MPI_Comm comm, const int n[], int nproc_1d[], int nproc_2d_x[], int nproc_2d_y[], int nproc_2d_z[], int nproc_3d[], distribution_t *d, bool debug) |
| void | distribution_fini (distribution_t *d) |
| void | distribution_assert_commensurate (distribution_t *d) |
| static void | redistribute (const complex_t *, complex_t *, distribution_t *, int) |
| static void | redistribute_2_and_3 (const complex_t *, complex_t *, distribution_t *, int, int) |
| static void | redistribute_slab (const complex_t *, complex_t *, distribution_t *, int) |
| void | distribution_1_to_3 (const complex_t *a, complex_t *b, distribution_t *d) |
| void | distribution_3_to_1 (const complex_t *a, complex_t *b, distribution_t *d) |
| void | distribution_2_to_3 (const complex_t *a, complex_t *b, distribution_t *d, int z_dim) |
| void | distribution_3_to_2 (const complex_t *a, complex_t *b, distribution_t *d, int z_dim) |
| #define DEBUG_CONDITION false |
| #define USE_SLAB_WORKAROUND 0 |
| anonymous enum |
| void Coord_cube | ( | int | myrank, |
| int | coord[], | ||
| distribution_t * | d | ||
| ) |
| void Coord_x_pencils | ( | int | myrank, |
| int | coord[], | ||
| distribution_t * | d | ||
| ) |
| void Coord_y_pencils | ( | int | myrank, |
| int | coord[], | ||
| distribution_t * | d | ||
| ) |
| void Coord_z_pencils | ( | int | myrank, |
| int | coord[], | ||
| distribution_t * | d | ||
| ) |
| void Custom3D_Dims_create | ( | const int | Ndims[], |
| int | nproc, | ||
| int | ndims, | ||
| int | dims[] | ||
| ) |
| void distribution_1_to_3 | ( | const complex_t * | a, |
| complex_t * | b, | ||
| distribution_t * | d | ||
| ) |
| void distribution_2_to_3 | ( | const complex_t * | a, |
| complex_t * | b, | ||
| distribution_t * | d, | ||
| int | z_dim | ||
| ) |
| void distribution_3_to_1 | ( | const complex_t * | a, |
| complex_t * | b, | ||
| distribution_t * | d | ||
| ) |
| void distribution_3_to_2 | ( | const complex_t * | a, |
| complex_t * | b, | ||
| distribution_t * | d, | ||
| int | z_dim | ||
| ) |
| void distribution_assert_commensurate | ( | distribution_t * | d | ) |
| void distribution_fini | ( | distribution_t * | d | ) |
| void distribution_init | ( | MPI_Comm | comm, |
| const int | n[], | ||
| const int | Ndims[], | ||
| distribution_t * | d, | ||
| const int * | rmap, | ||
| bool | debug | ||
| ) |
| void distribution_init_explicit | ( | MPI_Comm | comm, |
| const int | n[], | ||
| int | nproc_1d[], | ||
| int | nproc_2d_x[], | ||
| int | nproc_2d_y[], | ||
| int | nproc_2d_z[], | ||
| int | nproc_3d[], | ||
| distribution_t * | d, | ||
| bool | debug | ||
| ) |
| void Rank_cube | ( | int * | myrank, |
| int | coord[], | ||
| distribution_t * | d | ||
| ) |
| void Rank_x_pencils | ( | int * | myrank, |
| int | coord[], | ||
| distribution_t * | d | ||
| ) |
| void Rank_y_pencils | ( | int * | myrank, |
| int | coord[], | ||
| distribution_t * | d | ||
| ) |
| void Rank_z_pencils | ( | int * | myrank, |
| int | coord[], | ||
| distribution_t * | d | ||
| ) |
|
static |
|
static |
|
static |
|
inlinestatic |