ParallelIO
Functions
pio_spmd.c File Reference

MPI_Gather, MPI_Gatherv, and MPI_Alltoallw with flow control options. More...

#include <pio.h>
#include <pio_internal.h>

Functions

void CheckMPIReturn (const int ierr, const char file[], const int line)
 Wrapper for MPI calls to print the Error string on error.
 
int pio_fc_gather (void *sendbuf, const int sendcnt, const MPI_Datatype sendtype, void *recvbuf, const int recvcnt, const MPI_Datatype recvtype, const int root, const MPI_Comm comm, const int flow_cntl)
 Provides the functionality of MPI_Gather with flow control options.
 
int pio_fc_gatherv (void *sendbuf, const int sendcnt, const MPI_Datatype sendtype, void *recvbuf, const int recvcnts[], const int displs[], const MPI_Datatype recvtype, const int root, const MPI_Comm comm, const int flow_cntl)
 Provides the functionality of MPI_Gatherv with flow control options.
 
int ceil2 (const int i)
 Returns the smallest power of 2 greater than i.
 
int pair (const int np, const int p, const int k)
 Given integers p and k between 0 and np-1, if (p+1)^k <= np-1 then return (p+1)^k else -1.
 
int pio_swapm (void *sndbuf, int sndlths[], int sdispls[], MPI_Datatype stypes[], void *rcvbuf, int rcvlths[], int rdispls[], MPI_Datatype rtypes[], MPI_Comm comm, const bool handshake, bool isend, const int max_requests)
 Provides the functionality of MPI_Alltoallw with flow control options.
 

Detailed Description

MPI_Gather, MPI_Gatherv, and MPI_Alltoallw with flow control options.

Author
Algorithms modeled after spmd_utils in the Community Atmosphere Model; C translation Jim Edwards
Date
2014