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_allgather.h
Go to the documentation of this file.
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 
33 #ifndef SC_ALLGATHER_H
34 #define SC_ALLGATHER_H
35 
36 #include <sc.h>
37 
38 #ifndef SC_ALLGATHER_ALLTOALL_MAX
40 #define SC_ALLGATHER_ALLTOALL_MAX 5
41 #endif
42 
43 SC_EXTERN_C_BEGIN;
44 
55 void sc_allgather_alltoall (sc_MPI_Comm mpicomm, char *data,
56  int datasize, int groupsize,
57  int myoffset, int myrank);
58 
70 void sc_allgather_recursive (sc_MPI_Comm mpicomm, char *data,
71  int datasize, int groupsize,
72  int myoffset, int myrank);
73 
84 int sc_allgather (void *sendbuf, int sendcount,
85  sc_MPI_Datatype sendtype, void *recvbuf,
86  int recvcount, sc_MPI_Datatype recvtype,
87  sc_MPI_Comm mpicomm);
88 
89 SC_EXTERN_C_END;
90 
91 #endif /* !SC_ALLGATHER_H */
Support for process management (memory allocation, logging, etc.)
int sc_allgather(void *sendbuf, int sendcount, sc_MPI_Datatype sendtype, void *recvbuf, int recvcount, sc_MPI_Datatype recvtype, sc_MPI_Comm mpicomm)
Drop-in allgather replacement.
void sc_allgather_recursive(sc_MPI_Comm mpicomm, char *data, int datasize, int groupsize, int myoffset, int myrank)
Perform recursive bisection allgather.
void sc_allgather_alltoall(sc_MPI_Comm mpicomm, char *data, int datasize, int groupsize, int myoffset, int myrank)
Allgather by direct point-to-point communication.
sc3_MPI_Datatype_t sc_MPI_Datatype
Emulate MPI datatypes.
Definition: sc_mpi.h:452
sc3_MPI_Comm_t sc_MPI_Comm
Emulate an MPI communicator.
Definition: sc_mpi.h:450