Yet Another eXchange Tool 0.11.4
Loading...
Searching...
No Matches
xt_redist_collection_static.c File Reference
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <mpi.h>
#include "core/core.h"
#include "core/ppm_xfuncs.h"
#include "xt/xt_mpi.h"
#include "xt_mpi_internal.h"
#include "xt/xt_redist_collection_static.h"
#include "xt/xt_redist_single_array_base.h"
#include "ensure_array_size.h"
#include "xt/xt_redist.h"
#include "xt_redist_internal.h"
#include "xt_config_internal.h"
Include dependency graph for xt_redist_collection_static.c:

Go to the source code of this file.

Functions

static void generate_msg_infos (size_t nmsg, size_t num_redists, struct Xt_redist_msg *msgs, const MPI_Aint displacements[num_redists], const Xt_redist redists[num_redists], const size_t num_ranks[num_redists], const int *restrict ranks[num_redists], struct Xt_mpiddt_list *ddt_list, MPI_Comm comm, enum xt_msg_direction direction)
 
Xt_redist xt_redist_collection_static_new (Xt_redist *redists, int num_redists, const MPI_Aint src_displacements[num_redists], const MPI_Aint dst_displacements[num_redists], MPI_Comm comm)
 
Xt_redist xt_redist_collection_static_custom_new (Xt_redist *redists, int num_redists, const MPI_Aint src_displacements[num_redists], const MPI_Aint dst_displacements[num_redists], MPI_Comm comm, Xt_config config)
 

Detailed Description

Function Documentation

◆ generate_msg_infos()

static void generate_msg_infos ( size_t nmsg,
size_t num_redists,
struct Xt_redist_msg * msgs,
const MPI_Aint displacements[num_redists],
const Xt_redist redists[num_redists],
const size_t num_ranks[num_redists],
const int *restrict ranks[num_redists],
struct Xt_mpiddt_list * ddt_list,
MPI_Comm comm,
enum xt_msg_direction direction )
static

Definition at line 70 of file xt_redist_collection_static.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_redist_collection_static_custom_new()

Xt_redist xt_redist_collection_static_custom_new ( Xt_redist * redists,
int num_redists,
const MPI_Aint src_displacements[num_redists],
const MPI_Aint dst_displacements[num_redists],
MPI_Comm comm,
Xt_config config )

constructor for a redistribution collection that is comprised of multiple other redistributions with custom settings

Parameters
[in]redistsredistributions
[in]num_redistsnumber of redistributions
[in]src_displacementsarray of displacements of the source input arrays for the exchange
[in]dst_displacementsarray of displacements of the destination input arrays for the exchange
[in]commMPI communicator
[in]configconfiguration object for customizable settings
Remarks
all redistributions need to be based on the same MPI communicator
See Also
Correct use of addresses

Definition at line 124 of file xt_redist_collection_static.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_redist_collection_static_new()

Xt_redist xt_redist_collection_static_new ( Xt_redist * redists,
int num_redists,
const MPI_Aint src_displacements[num_redists],
const MPI_Aint dst_displacements[num_redists],
MPI_Comm comm )

constructor for a redistribution collection that is comprised of multiple other redistributions with default settings

Parameters
[in]redistsredistributions
[in]num_redistsnumber of redistributions
[in]src_displacementsarray of displacements of the source input arrays for the exchange
[in]dst_displacementsarray of displacements of the destination input arrays for the exchange
[in]commMPI communicator
Remarks
all redistributions need to be based on the same MPI communicator
See Also
Correct use of addresses

Definition at line 113 of file xt_redist_collection_static.c.

Here is the call graph for this function:
Here is the caller graph for this function: