Yet Another eXchange Tool 0.11.3
Loading...
Searching...
No Matches
xt_exchanger_vtable.c
Go to the documentation of this file.
1
12/*
13 * Keywords:
14 * Maintainer: Jörg Behrens <behrens@dkrz.de>
15 * Moritz Hanke <hanke@dkrz.de>
16 * Thomas Jahns <jahns@dkrz.de>
17 * URL: https://dkrz-sw.gitlab-pages.dkrz.de/yaxt/
18 *
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions are
21 * met:
22 *
23 * Redistributions of source code must retain the above copyright notice,
24 * this list of conditions and the following disclaimer.
25 *
26 * Redistributions in binary form must reproduce the above copyright
27 * notice, this list of conditions and the following disclaimer in the
28 * documentation and/or other materials provided with the distribution.
29 *
30 * Neither the name of the DKRZ GmbH nor the names of its contributors
31 * may be used to endorse or promote products derived from this software
32 * without specific prior written permission.
33 *
34 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
35 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
36 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
37 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
38 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
39 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
40 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
41 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
42 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
43 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
44 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 */
46#ifdef HAVE_CONFIG_H
47# include <config.h>
48#endif
49
50#include "core/core.h"
51
52#include "xt_exchanger.h"
55#ifdef XT_CAN_USE_MPI_NEIGHBOR_ALLTOALL
57#endif
62
63const struct xt_exchanger_vtable *
65{
66 const struct xt_exchanger_vtable *vtab = NULL;
67 if (exchanger_new == xt_exchanger_mix_isend_irecv_new)
69 else if (exchanger_new == xt_exchanger_irecv_isend_new
70 || exchanger_new == xt_exchanger_irecv_isend_packed_new
71 || exchanger_new == xt_exchanger_irecv_send_new)
73#if XT_ENABLE_DDT_EXCHANGER
74 else if (exchanger_new == xt_exchanger_irecv_isend_ddt_packed_new)
76#endif
77#if XT_CAN_USE_MPI_NEIGHBOR_ALLTOALL
78 else if (exchanger_new == xt_exchanger_neigh_alltoall_new)
80#endif
81 else
82 Xt_abort(Xt_default_comm, "unexpected exchanger constructor",
83 "xt_exchanger_vtable.c", __LINE__);
84 return vtab;
85}
86
87
88
89/*
90 * Local Variables:
91 * c-basic-offset: 2
92 * coding: utf-8
93 * indent-tabs-mode: nil
94 * show-trailing-whitespace: t
95 * require-trailing-newline: t
96 * End:
97 */
exchanging of data based on information provided by redist's
Xt_exchanger(* Xt_exchanger_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_config config)
Xt_exchanger xt_exchanger_irecv_isend_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_config config)
Xt_exchanger xt_exchanger_irecv_isend_ddt_packed_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_config config)
Xt_exchanger xt_exchanger_irecv_isend_packed_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_config config)
Xt_exchanger xt_exchanger_irecv_send_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_config config)
Xt_exchanger xt_exchanger_mix_isend_irecv_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_config config)
const struct xt_exchanger_vtable xt_exchanger_mix_isend_irecv_vtable
Xt_exchanger xt_exchanger_neigh_alltoall_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_config config)
const struct xt_exchanger_vtable xt_exchanger_neigh_alltoall_vtable
const struct xt_exchanger_vtable xt_exchanger_simple_base_vtable
const struct xt_exchanger_vtable * xt_exchanger_new_get_vtable(Xt_exchanger_new exchanger_new)