int unique_tag()
Returns a unique tag for temporary use (1023
Definition: safempi.h:667
int MPI_Isend(void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *)
Definition: stubmpi.h:153
int MPI_Get_count(MPI_Status *, MPI_Datatype, int *count)
Definition: stubmpi.h:143
Status(void)
Definition: safempi.h:184
double Wtime()
Wall time.
Definition: safempi.h:767
void Recv(void *buf, const int count, const MPI_Datatype datatype, const int source, const int tag) const
Definition: safempi.h:617
bool operator==(const Request &other)
Definition: safempi.h:271
int MPI_Testany(int, MPI_Request[], int *index, int *flag, MPI_Status *)
Definition: stubmpi.h:132
#define MPI_IDENT
Definition: stubmpi.h:34
Status & operator=(const Status &other)
Definition: safempi.h:189
Exception(const Exception &other)
Definition: safempi.h:158
int Init_thread(int &argc, char **&argv, int requested)
Analogous to MPI_Init_thread.
Definition: safempi.h:709
friend std::ostream & operator<<(std::ostream &os, const Exception &e)
Definition: safempi.h:171
int MPI_Comm
Definition: stubmpi.h:22
Intracomm Create(Group group) const
Definition: safempi.h:539
MPI_Comm & Get_mpi_comm() const
Definition: safempi.h:565
int MPI_Group_translate_ranks(const MPI_Group &, int n, const int *, const MPI_Group &, int *ranks2)
Definition: stubmpi.h:100
Request()
Definition: safempi.h:255
int Get_source() const
Definition: safempi.h:230
#define MPI_STATUS_IGNORE
Definition: stubmpi.h:19
MPI_Group group() const
Definition: safempi.h:390
int MPI_Group_free(MPI_Group *group)
Definition: stubmpi.h:111
SafeMPI exception object.
Definition: safempi.h:146
double MPI_Wtime()
Definition: stubmpi.h:225
int MPI_Init(int *, char ***)
Definition: stubmpi.h:116
int MPI_Buffer_detach(void *buffer, int *size)
Definition: stubmpi.h:125
#define SAFE_MPI_GLOBAL_MUTEX
Definition: safempi.h:85
Implements Mutex, MutexFair, Spinlock, ConditionVariable.
int Query_thread()
Analogous to MPI_Query_thread.
Definition: safempi.h:758
int MPI_Initialized(int *flag)
Definition: stubmpi.h:118
bool initialized()
Definition: world.cc:70
int MPI_Op
Definition: stubmpi.h:83
void Init(int &argc, char **&argv)
Analogous to MPI_Init.
Definition: safempi.h:730
int Get_rank() const
Definition: safempi.h:570
void error(const char *msg, int code)
Definition: oldtest.cc:57
static int Testsome(int incount, Request *requests, int *indices)
Definition: safempi.h:335
Group Incl(int n, const int *ranks) const
Definition: safempi.h:377
Request(const Request &other)
Definition: safempi.h:257
void binary_tree_info(int root, int &parent, int &child0, int &child1)
Construct info about a binary tree with given root.
Definition: safempi.cc:42
static bool Testany(int count, Request *requests, int &index)
Definition: safempi.h:296
int MPI_Send(void *, int, MPI_Datatype, int, int, MPI_Comm)
Definition: stubmpi.h:154
Request(MPI_Request other)
Definition: safempi.h:256
int Get_error() const
Definition: safempi.h:234
Scoped array.
Definition: scopedptr.h:85
bool Test_got_lock_already()
Definition: safempi.h:361
int MPI_TAG
Definition: stubmpi.h:15
#define MPI_REQUEST_NULL
Definition: stubmpi.h:44
const double m
Definition: gfit.cc:199
Definition: safempi.h:243
void reset()
Definition: shared_ptr_bits.h:459
int MPI_SOURCE
Definition: stubmpi.h:14
bool Is_finalized()
Check MPI finalization status.
Definition: safempi.h:121
#define MPI_MAX_ERROR_STRING
Definition: stubmpi.h:31
bool operator==(const Intracomm &other) const
Definition: safempi.h:549
bool Test_got_lock_already(MPI_Status &status)
Definition: safempi.h:350
ptrT * get() const
Pointer accessor.
Definition: scopedptr.h:266
Intracomm COMM_WORLD
Definition: safempi.cc:70
Definition: safempi.cc:36
int MPI_Comm_size(MPI_Comm, int *size)
Definition: stubmpi.h:150
void Bcast(void *buf, size_t count, const MPI_Datatype datatype, const int root) const
Definition: safempi.h:623
madness::SCALABLE_MUTEX_TYPE charon
bool operator!=(const Request &other)
Definition: safempi.h:272
Tensor< double > op(const Tensor< double > &x)
Definition: kain.cc:508
void Set_error(int error)
Definition: safempi.h:240
Request Irecv(void *buf, const int count, const MPI_Datatype datatype, const int src, const int tag) const
Definition: safempi.h:588
#define MADNESS_EXCEPTION(msg, value)
Definition: worldexc.h:88
void print_mpi_error(const int rc, const char *function, const int line, const char *file)
Definition: safempi.h:131
Request & operator=(const MPI_Request &other)
Definition: safempi.h:265
friend int Finalize()
Analogous to MPI_Finalize.
Definition: safempi.h:749
bool Test()
Definition: safempi.h:367
int MPI_Allreduce(void *sendbuf, void *recvbuf, int count, MPI_Datatype, MPI_Op, MPI_Comm)
Definition: stubmpi.h:167
struct MPI_Status MPI_Status
int MPI_Datatype
Definition: stubmpi.h:62
int MPI_Barrier(MPI_Comm)
Definition: stubmpi.h:176
Status & operator=(const MPI_Status other)
Definition: safempi.h:194
void Send(const void *buf, const int count, const MPI_Datatype datatype, int dest, int tag) const
Definition: safempi.h:596
~Intracomm()
Definition: safempi.h:526
const double c
Definition: gfit.cc:200
static int Testsome(int incount, Request *requests, int *indices, Status *statuses)
Definition: safempi.h:314
bool Get_attr(int key, void *value) const
Definition: safempi.h:640
Definition: safempi.h:178
int MPI_Request
Definition: stubmpi.h:10
int MPI_Finalize()
Definition: stubmpi.h:119
#define MPI_SUCCESS
Definition: stubmpi.h:28
int MPI_ERROR
Definition: stubmpi.h:16
int MPI_Abort(MPI_Comm, int code)
Definition: stubmpi.h:174