ECP-VELOC Components
User documentation for all components
er_util.h
Go to the documentation of this file.
1 #ifndef ER_UTIL_H
2 #define ER_UTIL_H
3 
4 #include "mpi.h"
5 #include "kvtree.h"
6 
11 #define ER_FAILURE (1)
12 
13 #define ER_MAX_FILENAME (1024)
14 
15 extern int er_debug;
16 
17 extern int er_rank;
18 extern char* er_hostname;
19 
20 extern int er_mpi_buf_size;
21 extern size_t er_page_size;
22 
23 extern int er_set_size;
24 
26 void er_err(const char *fmt, ...);
27 
29 void er_warn(const char *fmt, ...);
30 
32 void er_dbg(int level, const char *fmt, ...);
33 
35 void er_abort(int rc, const char *fmt, ...);
36 
39 #define ER_MALLOC(X) er_malloc(X, __FILE__, __LINE__);
40 void* er_malloc(size_t size, const char* file, int line);
41 
43 void er_free(void* ptr);
44 
46 void* er_align_malloc(size_t size, size_t align);
47 
49 void er_align_free(void* buf);
50 
54 int er_str_sendrecv(
55  const char* send_str, int send_rank,
56  char** recv_str, int recv_rank,
57  MPI_Comm comm
58 );
59 
61 int er_alltrue(int flag, MPI_Comm comm);
62 
63 #endif
er_debug
int er_debug
er_err
void er_err(const char *fmt,...)
er_malloc
void * er_malloc(size_t size, const char *file, int line)
er_align_free
void er_align_free(void *buf)
er_abort
void er_abort(int rc, const char *fmt,...)
kvtree.h
This file defines the data structure for a hash, which is an unordered list of elements,...
er_set_size
int er_set_size
er_str_sendrecv
int er_str_sendrecv(const char *send_str, int send_rank, char **recv_str, int recv_rank, MPI_Comm comm)
er_dbg
void er_dbg(int level, const char *fmt,...)
er_mpi_buf_size
int er_mpi_buf_size
er_alltrue
int er_alltrue(int flag, MPI_Comm comm)
er_free
void er_free(void *ptr)
er_warn
void er_warn(const char *fmt,...)
er_rank
int er_rank
er_hostname
char * er_hostname
er_align_malloc
void * er_align_malloc(size_t size, size_t align)
er_page_size
size_t er_page_size