MADNESS  version 0.9
Classes | Macros | Typedefs | Functions
stubmpi.h File Reference
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <madness/world/worldtime.h>
Include dependency graph for stubmpi.h:

Go to the source code of this file.

Classes

struct  MPI_Status
 

Macros

#define MPI_STATUS_IGNORE   ((MPI_Status *)1)
 
#define MPI_STATUSES_IGNORE   ((MPI_Status *)1)
 
#define MPI_COMM_WORLD   (0x44000000)
 
#define MPI_UNDEFINED   (-32766)
 
#define MPI_SUCCESS   0 /* Successful return code */
 
#define MPI_ERR_COMM   5 /* Invalid communicator */
 
#define MPI_ERR_ARG   12 /* Invalid argument */
 
#define MPI_MAX_ERROR_STRING   1024
 
#define MPI_IDENT   0
 
#define MPI_CONGRUENT   1
 
#define MPI_SIMILAR   2
 
#define MPI_UNEQUAL   3
 
#define MPI_COMM_NULL   ((MPI_Comm)0x04000000)
 
#define MPI_OP_NULL   ((MPI_Op)0x18000000)
 
#define MPI_GROUP_NULL   ((MPI_Group)0x08000000)
 
#define MPI_DATATYPE_NULL   ((MPI_Datatype)0x0c000000)
 
#define MPI_REQUEST_NULL   ((MPI_Request)0x2c000000)
 
#define MPI_ERRHANDLER_NULL   ((MPI_Errhandler)0x14000000)
 
#define MPI_THREAD_SINGLE   0
 
#define MPI_THREAD_FUNNELED   1
 
#define MPI_THREAD_SERIALIZED   2
 
#define MPI_THREAD_MULTIPLE   3
 
#define MPI_IN_PLACE   ((void *) -1)
 
#define MPI_PROC_NULL   -1
 
#define MPI_ANY_SOURCE   -2
 
#define MPI_ANY_TAG   -1
 
#define MPI_CHAR   ((MPI_Datatype)0x4c000101)
 
#define MPI_SIGNED_CHAR   ((MPI_Datatype)0x4c000118)
 
#define MPI_UNSIGNED_CHAR   ((MPI_Datatype)0x4c000102)
 
#define MPI_BYTE   ((MPI_Datatype)0x4c00010d)
 
#define MPI_WCHAR   ((MPI_Datatype)0x4c00040e)
 
#define MPI_SHORT   ((MPI_Datatype)0x4c000203)
 
#define MPI_UNSIGNED_SHORT   ((MPI_Datatype)0x4c000204)
 
#define MPI_INT   ((MPI_Datatype)0x4c000405)
 
#define MPI_UNSIGNED   ((MPI_Datatype)0x4c000406)
 
#define MPI_LONG   ((MPI_Datatype)0x4c000807)
 
#define MPI_UNSIGNED_LONG   ((MPI_Datatype)0x4c000808)
 
#define MPI_FLOAT   ((MPI_Datatype)0x4c00040a)
 
#define MPI_DOUBLE   ((MPI_Datatype)0x4c00080b)
 
#define MPI_LONG_DOUBLE   ((MPI_Datatype)0x4c00100c)
 
#define MPI_LONG_LONG_INT   ((MPI_Datatype)0x4c000809)
 
#define MPI_UNSIGNED_LONG_LONG   ((MPI_Datatype)0x4c000819)
 
#define MPI_LONG_LONG   ((MPI_Datatype)0x4c000809)
 
#define MPI_MAX   ((MPI_Op)0x58000001)
 
#define MPI_MIN   ((MPI_Op)0x58000002)
 
#define MPI_SUM   ((MPI_Op)0x58000003)
 
#define MPI_PROD   ((MPI_Op)0x58000004)
 
#define MPI_LAND   ((MPI_Op)0x58000005)
 
#define MPI_BAND   ((MPI_Op)0x58000006)
 
#define MPI_LOR   ((MPI_Op)0x58000007)
 
#define MPI_BOR   ((MPI_Op)0x58000008)
 
#define MPI_LXOR   ((MPI_Op)0x58000009)
 
#define MPI_BXOR   ((MPI_Op)0x5800000a)
 
#define MPI_MINLOC   ((MPI_Op)0x5800000b)
 
#define MPI_MAXLOC   ((MPI_Op)0x5800000c)
 
#define MPI_REPLACE   ((MPI_Op)0x5800000d)
 

Typedefs

typedef int MPI_Group
 
typedef int MPI_Request
 
typedef struct MPI_Status MPI_Status
 
typedef int MPI_Comm
 
typedef int MPI_Datatype
 
typedef int MPI_Op
 

Functions

int MPI_Group_translate_ranks (const MPI_Group &, int n, const int *, const MPI_Group &, int *ranks2)
 
int MPI_Group_incl (MPI_Group group, int n, const int ranks[], MPI_Group *newgroup)
 
int MPI_Group_free (MPI_Group *group)
 
int MPI_Init (int *, char ***)
 
int MPI_Init_thread (int *, char ***, int, int *provided)
 
int MPI_Initialized (int *flag)
 
int MPI_Finalize ()
 
int MPI_Finalized (int *flag)
 
int MPI_Query_thread (int *provided)
 
int MPI_Buffer_attach (void *, int)
 
int MPI_Buffer_detach (void *buffer, int *size)
 
int MPI_Test (MPI_Request *, int *flag, MPI_Status *)
 
int MPI_Testany (int, MPI_Request[], int *index, int *flag, MPI_Status *)
 
int MPI_Testsome (int, MPI_Request *, int *outcount, int *, MPI_Status *)
 
int MPI_Get_count (MPI_Status *, MPI_Datatype, int *count)
 
int MPI_Comm_rank (MPI_Comm, int *rank)
 
int MPI_Comm_size (MPI_Comm, int *size)
 
int MPI_Isend (void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *)
 
int MPI_Send (void *, int, MPI_Datatype, int, int, MPI_Comm)
 
int MPI_Bsend (void *, int, MPI_Datatype, int, int, MPI_Comm)
 
int MPI_Irecv (void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *)
 
int MPI_Recv (void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *)
 
int MPI_Bcast (void *, int, MPI_Datatype, int, MPI_Comm)
 
int MPI_Reduce (void *sendbuf, void *recvbuf, int count, MPI_Datatype, MPI_Op, int, MPI_Comm)
 
int MPI_Allreduce (void *sendbuf, void *recvbuf, int count, MPI_Datatype, MPI_Op, MPI_Comm)
 
int MPI_Comm_get_attr (MPI_Comm, int, void *, int *)
 
int MPI_Abort (MPI_Comm, int code)
 
int MPI_Barrier (MPI_Comm)
 
int MPI_Comm_create (MPI_Comm, MPI_Group, MPI_Comm *newcomm)
 
int MPI_Comm_group (MPI_Comm, MPI_Group *group)
 
int MPI_Comm_free (MPI_Comm *comm)
 
int MPI_Comm_compare (MPI_Comm comm1, MPI_Comm comm2, int *result)
 
int MPI_Error_string (int errorcode, char *string, int *resultlen)
 
double MPI_Wtime ()
 

Macro Definition Documentation

#define MPI_ANY_SOURCE   -2
#define MPI_ANY_TAG   -1
#define MPI_BAND   ((MPI_Op)0x58000006)
#define MPI_BOR   ((MPI_Op)0x58000008)
#define MPI_BXOR   ((MPI_Op)0x5800000a)
#define MPI_BYTE   ((MPI_Datatype)0x4c00010d)
#define MPI_CHAR   ((MPI_Datatype)0x4c000101)
#define MPI_COMM_NULL   ((MPI_Comm)0x04000000)

Referenced by MPI_Comm_create(), and MPI_Comm_free().

#define MPI_COMM_WORLD   (0x44000000)
#define MPI_CONGRUENT   1
#define MPI_DATATYPE_NULL   ((MPI_Datatype)0x0c000000)
#define MPI_DOUBLE   ((MPI_Datatype)0x4c00080b)
#define MPI_ERR_ARG   12 /* Invalid argument */

Referenced by MPI_Error_string().

#define MPI_ERR_COMM   5 /* Invalid communicator */
#define MPI_ERRHANDLER_NULL   ((MPI_Errhandler)0x14000000)
#define MPI_FLOAT   ((MPI_Datatype)0x4c00040a)
#define MPI_GROUP_NULL   ((MPI_Group)0x08000000)

Referenced by MPI_Comm_group().

#define MPI_IDENT   0

Referenced by MPI_Comm_compare().

#define MPI_IN_PLACE   ((void *) -1)

Referenced by MPI_Allreduce(), and MPI_Reduce().

#define MPI_INT   ((MPI_Datatype)0x4c000405)
#define MPI_LAND   ((MPI_Op)0x58000005)
#define MPI_LONG   ((MPI_Datatype)0x4c000807)
#define MPI_LONG_DOUBLE   ((MPI_Datatype)0x4c00100c)
#define MPI_LONG_LONG   ((MPI_Datatype)0x4c000809)
#define MPI_LONG_LONG_INT   ((MPI_Datatype)0x4c000809)
#define MPI_LOR   ((MPI_Op)0x58000007)
#define MPI_LXOR   ((MPI_Op)0x58000009)
#define MPI_MAX   ((MPI_Op)0x58000001)
#define MPI_MAX_ERROR_STRING   1024
#define MPI_MAXLOC   ((MPI_Op)0x5800000c)
#define MPI_MIN   ((MPI_Op)0x58000002)
#define MPI_MINLOC   ((MPI_Op)0x5800000b)
#define MPI_OP_NULL   ((MPI_Op)0x18000000)
#define MPI_PROC_NULL   -1
#define MPI_PROD   ((MPI_Op)0x58000004)
#define MPI_REPLACE   ((MPI_Op)0x5800000d)
#define MPI_REQUEST_NULL   ((MPI_Request)0x2c000000)
#define MPI_SHORT   ((MPI_Datatype)0x4c000203)
#define MPI_SIGNED_CHAR   ((MPI_Datatype)0x4c000118)
#define MPI_SIMILAR   2
#define MPI_STATUS_IGNORE   ((MPI_Status *)1)
#define MPI_STATUSES_IGNORE   ((MPI_Status *)1)
#define MPI_SUCCESS   0 /* Successful return code */
#define MPI_SUM   ((MPI_Op)0x58000003)
#define MPI_THREAD_FUNNELED   1
#define MPI_THREAD_MULTIPLE   3
#define MPI_THREAD_SERIALIZED   2
#define MPI_THREAD_SINGLE   0
#define MPI_UNDEFINED   (-32766)
#define MPI_UNEQUAL   3

Referenced by MPI_Comm_compare().

#define MPI_UNSIGNED   ((MPI_Datatype)0x4c000406)
#define MPI_UNSIGNED_CHAR   ((MPI_Datatype)0x4c000102)
#define MPI_UNSIGNED_LONG   ((MPI_Datatype)0x4c000808)
#define MPI_UNSIGNED_LONG_LONG   ((MPI_Datatype)0x4c000819)
#define MPI_UNSIGNED_SHORT   ((MPI_Datatype)0x4c000204)
#define MPI_WCHAR   ((MPI_Datatype)0x4c00040e)

Typedef Documentation

typedef int MPI_Comm
typedef int MPI_Datatype
typedef int MPI_Group
typedef int MPI_Op
typedef int MPI_Request
typedef struct MPI_Status MPI_Status

Function Documentation

int MPI_Abort ( MPI_Comm  ,
int  code 
)
inline
int MPI_Allreduce ( void *  sendbuf,
void *  recvbuf,
int  count,
MPI_Datatype  ,
MPI_Op  ,
MPI_Comm   
)
inline

References MPI_IN_PLACE, and MPI_SUCCESS.

Referenced by SafeMPI::Intracomm::Allreduce().

int MPI_Barrier ( MPI_Comm  )
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Intracomm::Barrier().

int MPI_Bcast ( void *  ,
int  ,
MPI_Datatype  ,
int  ,
MPI_Comm   
)
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Intracomm::Bcast().

int MPI_Bsend ( void *  ,
int  ,
MPI_Datatype  ,
int  ,
int  ,
MPI_Comm   
)
inline

References MPI_ERR_COMM.

int MPI_Buffer_attach ( void *  ,
int   
)
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Attach_buffer().

int MPI_Buffer_detach ( void *  buffer,
int *  size 
)
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Detach_buffer().

int MPI_Comm_compare ( MPI_Comm  comm1,
MPI_Comm  comm2,
int *  result 
)
inline

References MPI_IDENT, MPI_SUCCESS, and MPI_UNEQUAL.

int MPI_Comm_create ( MPI_Comm  ,
MPI_Group  ,
MPI_Comm newcomm 
)
inline

References MPI_COMM_NULL, and MPI_SUCCESS.

Referenced by SafeMPI::Intracomm::Create().

int MPI_Comm_free ( MPI_Comm comm)
inline

References MPI_COMM_NULL, and MPI_SUCCESS.

int MPI_Comm_get_attr ( MPI_Comm  ,
int  ,
void *  ,
int *   
)
inline

References MPI_ERR_COMM.

Referenced by SafeMPI::Intracomm::Get_attr().

int MPI_Comm_group ( MPI_Comm  ,
MPI_Group group 
)
inline

References MPI_GROUP_NULL, and MPI_SUCCESS.

int MPI_Comm_rank ( MPI_Comm  ,
int *  rank 
)
inline
int MPI_Comm_size ( MPI_Comm  ,
int *  size 
)
inline
int MPI_Error_string ( int  errorcode,
char *  string,
int *  resultlen 
)
inline
int MPI_Finalize ( )
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Finalize().

int MPI_Finalized ( int *  flag)
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Is_finalized().

int MPI_Get_count ( MPI_Status ,
MPI_Datatype  ,
int *  count 
)
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Status::Get_count().

int MPI_Group_free ( MPI_Group group)
inline

References MPI_SUCCESS.

int MPI_Group_incl ( MPI_Group  group,
int  n,
const int  ranks[],
MPI_Group newgroup 
)
inline

References MPI_SUCCESS.

int MPI_Group_translate_ranks ( const MPI_Group ,
int  n,
const int *  ,
const MPI_Group ,
int *  ranks2 
)
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Group::Translate_ranks().

int MPI_Init ( int *  ,
char ***   
)
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Init().

int MPI_Init_thread ( int *  ,
char ***  ,
int  ,
int *  provided 
)
inline

References MPI_SUCCESS, and MPI_THREAD_SERIALIZED.

Referenced by SafeMPI::Init_thread().

int MPI_Initialized ( int *  flag)
inline

References MPI_SUCCESS.

Referenced by SafeMPI::Is_initialized().

int MPI_Irecv ( void *  ,
int  ,
MPI_Datatype  ,
int  ,
int  ,
MPI_Comm  ,
MPI_Request  
)
inline

References MPI_ERR_COMM.

Referenced by SafeMPI::Intracomm::Irecv().

int MPI_Isend ( void *  ,
int  ,
MPI_Datatype  ,
int  ,
int  ,
MPI_Comm  ,
MPI_Request  
)
inline

References MPI_ERR_COMM.

Referenced by SafeMPI::Intracomm::Isend().

int MPI_Query_thread ( int *  provided)
inline
int MPI_Recv ( void *  ,
int  ,
MPI_Datatype  ,
int  ,
int  ,
MPI_Comm  ,
MPI_Status  
)
inline

References MPI_ERR_COMM.

Referenced by SafeMPI::Intracomm::Recv().

int MPI_Reduce ( void *  sendbuf,
void *  recvbuf,
int  count,
MPI_Datatype  ,
MPI_Op  ,
int  ,
MPI_Comm   
)
inline

References MPI_IN_PLACE, and MPI_SUCCESS.

Referenced by SafeMPI::Intracomm::Reduce().

int MPI_Send ( void *  ,
int  ,
MPI_Datatype  ,
int  ,
int  ,
MPI_Comm   
)
inline

References MPI_ERR_COMM.

Referenced by SafeMPI::Intracomm::Send().

int MPI_Test ( MPI_Request ,
int *  flag,
MPI_Status  
)
inline
int MPI_Testany ( int  ,
MPI_Request  [],
int *  index,
int *  flag,
MPI_Status  
)
inline

References MPI_SUCCESS, and MPI_UNDEFINED.

Referenced by SafeMPI::Request::Testany().

int MPI_Testsome ( int  ,
MPI_Request ,
int *  outcount,
int *  ,
MPI_Status  
)
inline

References MPI_SUCCESS, and MPI_UNDEFINED.

Referenced by SafeMPI::Request::Testsome().

double MPI_Wtime ( )
inline

References madness::wall_time().

Referenced by SafeMPI::Wtime().