Yet Another eXchange Tool 0.11.1
Loading...
Searching...
No Matches
xt_config.h
Go to the documentation of this file.
1
14/*
15 * Maintainer: Jörg Behrens <behrens@dkrz.de>
16 * Moritz Hanke <hanke@dkrz.de>
17 * Thomas Jahns <jahns@dkrz.de>
18 *
19 * URL: https://dkrz-sw.gitlab-pages.dkrz.de/yaxt/
20 *
21 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions are
23 * met:
24 *
25 * Redistributions of source code must retain the above copyright notice,
26 * this list of conditions and the following disclaimer.
27 *
28 * Redistributions in binary form must reproduce the above copyright
29 * notice, this list of conditions and the following disclaimer in the
30 * documentation and/or other materials provided with the distribution.
31 *
32 * Neither the name of the DKRZ GmbH nor the names of its contributors
33 * may be used to endorse or promote products derived from this software
34 * without specific prior written permission.
35 *
36 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
37 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
38 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
39 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
40 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
41 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
42 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
43 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
44 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
45 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
46 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47 */
48
49#ifndef XT_CONFIG_H
50#define XT_CONFIG_H
51
52#ifdef HAVE_CONFIG_H
53#include <config.h>
54#endif
55
57
58typedef struct Xt_config_ *Xt_config;
59
67
73void xt_config_delete(Xt_config config);
74
83
90void xt_config_set_exchange_method(Xt_config config, int method);
91
99
108int
109xt_exchanger_id_by_name(const char *name);
110
120int
122
135void
137
139 /* xt_redist_[as]_exchange calls will be single-threaded */
141 /* xt_redist_[as]_exchange calls will open an OpenMP parallel region */
143};
144
151int
153
160void
162
170
177int
179
186void
188
205void
206xt_config_set_mem_saving(Xt_config config, int memconserve);
207
212int
214
220
226void
228 Xt_xmdd_bucket_gen bucket_gen_iface);
229
250void
251xt_config_set_dist_dir_stripe_alignment(Xt_config config, int use_stripe_alignment);
252
257int
259
260
261#endif
262
263/*
264 * Local Variables:
265 * c-basic-offset: 2
266 * coding: utf-8
267 * indent-tabs-mode: nil
268 * show-trailing-whitespace: t
269 * require-trailing-newline: t
270 * End:
271 */
char name[32]
Definition xt_config.c:92
void xt_config_set_idxvec_autoconvert_size(Xt_config config, int cnvsize)
Definition xt_config.c:331
void xt_config_set_redist_mthread_mode(Xt_config config, int mode)
Definition xt_config.c:345
struct Xt_config_ * Xt_config
Definition xt_config.h:58
int xt_exchanger_id_by_name(const char *name)
Definition xt_config.c:125
void xt_config_delete(Xt_config config)
Definition xt_config.c:84
void xt_config_set_exchange_method(Xt_config config, int method)
Definition xt_config.c:295
void xt_config_set_sort_algorithm_by_id(Xt_config config, int algo)
Definition xt_config.c:244
int xt_config_get_mem_saving(Xt_config config)
Definition xt_config.c:267
void xt_config_set_mem_saving(Xt_config config, int memconserve)
Definition xt_config.c:258
int xt_config_get_dist_dir_stripe_alignment(Xt_config config)
Definition xt_config.c:379
void xt_config_set_dist_dir_stripe_alignment(Xt_config config, int use_stripe_alignment)
Definition xt_config.c:369
Xt_mthread_mode
Definition xt_config.h:138
@ XT_MT_OPENMP
Definition xt_config.h:142
@ XT_MT_NONE
Definition xt_config.h:140
Xt_exchangers
Definition xt_config.h:75
@ xt_exchanger_irecv_isend
Definition xt_config.h:77
@ xt_exchanger_irecv_send
Definition xt_config.h:76
@ xt_exchanger_irecv_isend_packed
Definition xt_config.h:78
@ xt_exchanger_irecv_isend_ddt_packed
Definition xt_config.h:81
@ xt_exchanger_neigh_alltoall
Definition xt_config.h:80
@ xt_exchanger_mix_isend_irecv
Definition xt_config.h:79
int xt_config_get_sort_algorithm_id(Xt_config config)
Definition xt_config.c:231
Xt_xmdd_bucket_gen xt_config_get_xmdd_bucket_gen(Xt_config config)
Definition xt_config.c:274
int xt_config_get_redist_mthread_mode(Xt_config config)
Definition xt_config.c:338
Xt_sort_algorithm
Definition xt_config.h:163
@ XT_QUICKSORT
Definition xt_config.h:165
@ XT_MERGESORT
Definition xt_config.h:168
Xt_config xt_config_new(void)
Definition xt_config.c:77
void xt_config_set_xmdd_bucket_gen(Xt_config config, Xt_xmdd_bucket_gen bucket_gen_iface)
Definition xt_config.c:280
int xt_config_get_idxvec_autoconvert_size(Xt_config config)
Definition xt_config.c:325
int xt_config_get_exchange_method(Xt_config config)
Definition xt_config.c:143