10 #ifndef _PROTO_SPMD_H_ 11 #define _PROTO_SPMD_H_ 24 template <
typename T=
void>
30 MPI_Comm Proto_MPI<T>::comm = MPI_COMM_WORLD;
35 #define PR_MAX_MPI_MESSAGE_SIZE 30*1024*1024 39 inline int reportMPIStats()
41 pout()<<
"Proto message size limit:"<< PR_MAX_MPI_MESSAGE_SIZE<<
"\n" 42 <<
"Max send message size:"<<PR_MaxMPISendSize<<
"\n" 43 <<
"Max recv message size:"<<PR_MaxMPIRecvSize<<std::endl;
56 MPI_Comm_rank(Proto_MPI<void>::comm, &retval);
78 MPI_Comm_size(Proto_MPI<void>::comm, &ret);
93 MPI_Barrier(Proto_MPI<>::comm);
void barrier()
all ranks wait here to sync-up
Definition: Proto_SPMD.H:90
unsigned int numProc()
number of parallel processes
Definition: Proto_SPMD.H:72
int procID()
local process ID
Definition: Proto_SPMD.H:52
std::ostream & pout()
Use this in place of std::cout for program output.
Definition: Proto_parstream.H:109
Definition: Proto_Box.H:11