Yet Another eXchange Tool  0.9.0
Typedefs | Functions
xt_exchanger_simple_base.h File Reference
#include "xt/xt_core.h"
#include "xt_redist_internal.h"
#include "xt_exchanger.h"
Include dependency graph for xt_exchanger_simple_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* xt_simple_s_exchange_func) (const void *src_data, void *dst_data, int nsend, int nrecv, const struct Xt_redist_msg *send_msgs, const struct Xt_redist_msg *recv_msgs, int tag_offset, MPI_Comm comm)
 
typedef void(* xt_simple_a_exchange_func) (const void *src_data, void *dst_data, int nsend, int nrecv, const struct Xt_redist_msg *send_msgs, const struct Xt_redist_msg *recv_msgs, int tag_offset, MPI_Comm comm, Xt_request *request)
 

Functions

Xt_exchanger xt_exchanger_simple_base_new (int nsend, int nrecv, const struct Xt_redist_msg *send_msgs, const struct Xt_redist_msg *recv_msgs, MPI_Comm comm, int tag_offset, xt_simple_s_exchange_func s_func, xt_simple_a_exchange_func a_func)
 

Detailed Description

Author
Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file xt_exchanger_simple_base.h.

Typedef Documentation

◆ xt_simple_a_exchange_func

typedef void(* xt_simple_a_exchange_func) (const void *src_data, void *dst_data, int nsend, int nrecv, const struct Xt_redist_msg *send_msgs, const struct Xt_redist_msg *recv_msgs, int tag_offset, MPI_Comm comm, Xt_request *request)

Definition at line 62 of file xt_exchanger_simple_base.h.

◆ xt_simple_s_exchange_func

typedef void(* xt_simple_s_exchange_func) (const void *src_data, void *dst_data, int nsend, int nrecv, const struct Xt_redist_msg *send_msgs, const struct Xt_redist_msg *recv_msgs, int tag_offset, MPI_Comm comm)

Definition at line 57 of file xt_exchanger_simple_base.h.

Function Documentation

◆ xt_exchanger_simple_base_new()

Xt_exchanger xt_exchanger_simple_base_new ( int  nsend,
int  nrecv,
const struct Xt_redist_msg send_msgs,
const struct Xt_redist_msg recv_msgs,
MPI_Comm  comm,
int  tag_offset,
xt_simple_s_exchange_func  s_func,
xt_simple_a_exchange_func  a_func 
)

constructor for an exchanger using asynchronous send and recv

Parameters
[in]nsendnumber of send messages
[in]nrecvnumber of receive messages
[in]send_msgsarray with send messages
[in]recv_msgsarray with receive messages
[in]commMPI communicator that is to be used for the communication
[in]tag_offsettag
[in]s_funcfunction pointer used for synchronous exchanges
[in]a_funcfunction pointer used for asynchronous exchanges
Remarks
tag_offset + xt_mpi_tag_exchange_msg must not be used on comm by any other part of the program during the lifetime of the created exchanger object

note: tag_offset + xt_mpi_tag_exchange_msg must not be used on comm by any other part of the program during the lifetime of the created exchanger object

Definition at line 118 of file xt_exchanger_simple_base.c.

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