10 #ifndef _PROTO_SPMD_H_ 11 #define _PROTO_SPMD_H_ 22 template <
typename T=
void>
27 template <
typename T> MPI_Comm Proto_MPI<T>::comm = MPI_COMM_WORLD;
32 #define PR_MAX_MPI_MESSAGE_SIZE 30*1024*1024 43 MPI_Comm_rank(Proto_MPI<void>::comm, &retval);
65 MPI_Comm_size(Proto_MPI<void>::comm, &ret);
80 MPI_Barrier(Proto_MPI<>::comm);
86 inline MPI_Datatype mpiDatatype()
89 return MPI_DATATYPE_NULL;
93 inline MPI_Datatype mpiDatatype<int>(){
return MPI_INT;}
96 inline MPI_Datatype mpiDatatype<double>(){
return MPI_DOUBLE;}
void barrier()
Parallel Barrier.
Definition: Proto_SPMD.H:77
unsigned int numProc()
Get Number of Ranks.
Definition: Proto_SPMD.H:59
int PRprocID()
Definition: Proto_SPMD.H:50
int procID()
Get Local Process ID.
Definition: Proto_SPMD.H:39
Definition: Proto_Array.H:17