er utilities
More...
Go to the source code of this file.
|
void | er_err (const char *fmt,...) |
|
void | er_warn (const char *fmt,...) |
|
void | er_dbg (int level, const char *fmt,...) |
|
void | er_abort (int rc, const char *fmt,...) |
|
void * | er_malloc (size_t size, const char *file, int line) |
|
void | er_free (void *ptr) |
|
void * | er_align_malloc (size_t size, size_t align) |
|
void | er_align_free (void *buf) |
|
int | er_str_sendrecv (const char *send_str, int send_rank, char **recv_str, int recv_rank, MPI_Comm comm) |
|
int | er_alltrue (int flag, MPI_Comm comm) |
|
◆ er_abort()
void er_abort |
( |
int |
rc, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
print abort message and kill run
◆ er_align_free()
void er_align_free |
( |
void * |
buf | ) |
|
frees a blocked allocated with a call to er_align_malloc
◆ er_align_malloc()
void* er_align_malloc |
( |
size_t |
size, |
|
|
size_t |
align |
|
) |
| |
allocates a block of memory and aligns it to specified alignment
◆ er_alltrue()
int er_alltrue |
( |
int |
flag, |
|
|
MPI_Comm |
comm |
|
) |
| |
returns true (non-zero) if flag on each process in comm is true
◆ er_dbg()
void er_dbg |
( |
int |
level, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
print message to stdout if er_debug is set and it is >= level
◆ er_err()
void er_err |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
print error message to stdout
◆ er_free()
void er_free |
( |
void * |
ptr | ) |
|
pass address of pointer to be freed, frees memory if not NULL and sets pointer to NULL
◆ er_malloc()
void* er_malloc |
( |
size_t |
size, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
◆ er_str_sendrecv()
int er_str_sendrecv |
( |
const char * |
send_str, |
|
|
int |
send_rank, |
|
|
char ** |
recv_str, |
|
|
int |
recv_rank, |
|
|
MPI_Comm |
comm |
|
) |
| |
sends a NUL-terminated string to a process, allocates space and recieves a NUL-terminated string from a process, can specify MPI_PROC_NULL as either send or recv rank
◆ er_warn()
void er_warn |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
print warning message to stdout
◆ er_debug
◆ er_hostname
◆ er_mpi_buf_size
◆ er_page_size
◆ er_rank
◆ er_set_size