libsc  2.8.7
The SC library provides support for parallel scientific applications.
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sc_ranges.h
1 /*
2  This file is part of the SC Library.
3  The SC Library provides support for parallel scientific applications.
4 
5  Copyright (C) 2010 The University of Texas System
6  Additional copyright (C) 2011 individual authors
7 
8  The SC Library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Lesser General Public
10  License as published by the Free Software Foundation; either
11  version 2.1 of the License, or (at your option) any later version.
12 
13  The SC Library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with the SC Library; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  02110-1301, USA.
22 */
23 
24 #ifndef SC_RANGES_H
25 #define SC_RANGES_H
26 
27 #include <sc.h>
28 
29 SC_EXTERN_C_BEGIN;
30 
48 int sc_ranges_compute (int package_id, int num_procs,
49  const int *procs, int rank,
50  int first_peer, int last_peer,
51  int num_ranges, int *ranges);
52 
74 int sc_ranges_adaptive (int package_id, sc_MPI_Comm mpicomm,
75  const int *procs,
76  int *inout1, int *inout2,
77  int num_ranges, int *ranges,
78  int **global_ranges);
79 
97 void sc_ranges_decode (int num_procs, int rank,
98  int max_ranges,
99  const int *global_ranges,
100  int *num_receivers, int *receiver_ranks,
101  int *num_senders, int *sender_ranks);
102 
108 void sc_ranges_statistics (int package_id, int log_priority,
109  sc_MPI_Comm mpicomm, int num_procs,
110  const int *procs, int rank,
111  int num_ranges, int *ranges);
112 
113 SC_EXTERN_C_END;
114 
115 #endif /* !SC_RANGES_H */
Support for process management (memory allocation, logging, etc.)
sc3_MPI_Comm_t sc_MPI_Comm
Emulate an MPI communicator.
Definition: sc_mpi.h:450