Yet Another eXchange Tool 0.11.1
Loading...
Searching...
No Matches
xt_mpi_ddt_cache.h
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#ifndef XT_MPI_DDT_CACHE_H
47#define XT_MPI_DDT_CACHE_H
48
49#ifdef HAVE_CONFIG_H
50#include <config.h>
51#endif
52
53#include <mpi.h>
54
55#include "core/ppm_visibility.h"
56
58
61 MPI_Datatype *struct_dt; /* points to concatenation of arrays of the datatypes
62 * used for each struct */
64};
65
66#define Xt_mpiddt_empty_list ((struct Xt_mpiddt_list){NULL,NULL,0,0})
75PPM_DSO_INTERNAL MPI_Datatype
77 struct Xt_mpiddt_list *ddt_list,
78 int count, MPI_Datatype oldtype,
79 MPI_Comm comm);
80
91PPM_DSO_INTERNAL MPI_Datatype
93 struct Xt_mpiddt_list *ddt_list,
94 int count, int blocklength, int stride, MPI_Datatype oldtype,
95 MPI_Comm comm);
96
107PPM_DSO_INTERNAL MPI_Datatype
109 struct Xt_mpiddt_list *ddt_list,
110 int count, int blocklength, MPI_Aint stride, MPI_Datatype oldtype,
111 MPI_Comm comm);
112
122PPM_DSO_INTERNAL MPI_Datatype
124 struct Xt_mpiddt_list *ddt_list,
125 int count, int blocklength, int disp[count], MPI_Datatype oldtype,
126 MPI_Comm comm);
127
137PPM_DSO_INTERNAL MPI_Datatype
139 struct Xt_mpiddt_list *ddt_list,
140 int count, int blocklength, MPI_Aint disp[count], MPI_Datatype oldtype,
141 MPI_Comm comm);
142
152PPM_DSO_INTERNAL MPI_Datatype
154 struct Xt_mpiddt_list *ddt_list,
155 int count, int blocklength[count], int disp[count], MPI_Datatype oldtype,
156 MPI_Comm comm);
157
167PPM_DSO_INTERNAL MPI_Datatype
169 struct Xt_mpiddt_list *ddt_list,
170 int count, int blocklength[count], MPI_Aint disp[count], MPI_Datatype oldtype,
171 MPI_Comm comm);
172
182PPM_DSO_INTERNAL MPI_Datatype
184 struct Xt_mpiddt_list *ddt_list,
185 int count, int blocklength[count], MPI_Aint disp[count],
186 MPI_Datatype oldtype[count], MPI_Comm comm);
187
188
197 MPI_Datatype *dt, MPI_Comm comm);
198
209 MPI_Comm comm);
210
211#include "xt/xt_redist.h"
212
215 size_t nmsg,
216 struct Xt_redist_msg msgs[nmsg]);
217
218
219#endif
220
221/*
222 * Local Variables:
223 * c-basic-offset: 2
224 * coding: utf-8
225 * indent-tabs-mode: nil
226 * show-trailing-whitespace: t
227 * require-trailing-newline: t
228 * End:
229 */
int MPI_Comm
Definition core.h:64
#define PPM_DSO_INTERNAL
struct Xt_mpiddt_list_entry * entries
MPI_Datatype * struct_dt
PPM_DSO_INTERNAL MPI_Datatype Xt_mpi_ddt_cache_acquire_struct(struct Xt_mpiddt_list *ddt_list, int count, int blocklength[count], MPI_Aint disp[count], MPI_Datatype oldtype[count], MPI_Comm comm)
PPM_DSO_INTERNAL MPI_Datatype Xt_mpi_ddt_cache_acquire_hindexed(struct Xt_mpiddt_list *ddt_list, int count, int blocklength[count], MPI_Aint disp[count], MPI_Datatype oldtype, MPI_Comm comm)
PPM_DSO_INTERNAL MPI_Datatype Xt_mpi_ddt_cache_acquire_indexed(struct Xt_mpiddt_list *ddt_list, int count, int blocklength[count], int disp[count], MPI_Datatype oldtype, MPI_Comm comm)
PPM_DSO_INTERNAL void Xt_mpi_ddt_cache_entry_release(struct Xt_mpiddt_list *ddt_list, MPI_Datatype *dt, MPI_Comm comm)
PPM_DSO_INTERNAL MPI_Datatype Xt_mpi_ddt_cache_acquire_hindexed_block(struct Xt_mpiddt_list *ddt_list, int count, int blocklength, MPI_Aint disp[count], MPI_Datatype oldtype, MPI_Comm comm)
PPM_DSO_INTERNAL MPI_Datatype Xt_mpi_ddt_cache_acquire_indexed_block(struct Xt_mpiddt_list *ddt_list, int count, int blocklength, int disp[count], MPI_Datatype oldtype, MPI_Comm comm)
PPM_DSO_INTERNAL MPI_Datatype Xt_mpi_ddt_cache_acquire_hvector(struct Xt_mpiddt_list *ddt_list, int count, int blocklength, MPI_Aint stride, MPI_Datatype oldtype, MPI_Comm comm)
PPM_DSO_INTERNAL void Xt_mpi_ddt_cache_check_retention(struct Xt_mpiddt_list *ddt_list, size_t nmsg, struct Xt_redist_msg msgs[nmsg])
PPM_DSO_INTERNAL MPI_Datatype Xt_mpi_ddt_cache_acquire_vector(struct Xt_mpiddt_list *ddt_list, int count, int blocklength, int stride, MPI_Datatype oldtype, MPI_Comm comm)
PPM_DSO_INTERNAL void Xt_mpi_ddt_cache_free(struct Xt_mpiddt_list *ddt_list, MPI_Comm comm)
PPM_DSO_INTERNAL MPI_Datatype Xt_mpi_ddt_cache_acquire_contiguous(struct Xt_mpiddt_list *ddt_list, int count, MPI_Datatype oldtype, MPI_Comm comm)
redistribution of data