utilities for redundancy sets
More...
Go to the source code of this file.
|
void | redset_err (const char *fmt,...) |
|
void | redset_warn (const char *fmt,...) |
|
void | redset_dbg (int level, const char *fmt,...) |
|
void | redset_abort (int rc, const char *fmt,...) |
|
void * | redset_malloc (size_t size, const char *file, int line) |
|
void | redset_free (void *ptr) |
|
void * | redset_align_malloc (size_t size, size_t align) |
|
void | redset_align_free (void *buf) |
|
int | redset_str_sendrecv (const char *send_str, int send_rank, char **recv_str, int recv_rank, MPI_Comm comm) |
|
int | redset_alltrue (int flag, MPI_Comm comm) |
|
void | redset_sort_kvtree (kvtree *hash) |
|
void ** | redset_buffers_alloc (int num, size_t size) |
|
void | redset_buffers_free (int num, void *pbufs) |
|
◆ redset_abort()
void redset_abort |
( |
int |
rc, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
print abort message and kill run
◆ redset_align_free()
void redset_align_free |
( |
void * |
buf | ) |
|
frees a blocked allocated with a call to redset_align_malloc
◆ redset_align_malloc()
void* redset_align_malloc |
( |
size_t |
size, |
|
|
size_t |
align |
|
) |
| |
allocates a block of memory and aligns it to specified alignment
◆ redset_alltrue()
int redset_alltrue |
( |
int |
flag, |
|
|
MPI_Comm |
comm |
|
) |
| |
returns true (non-zero) if flag on each process in comm is true
◆ redset_buffers_alloc()
void** redset_buffers_alloc |
( |
int |
num, |
|
|
size_t |
size |
|
) |
| |
◆ redset_buffers_free()
void redset_buffers_free |
( |
int |
num, |
|
|
void * |
pbufs |
|
) |
| |
◆ redset_dbg()
void redset_dbg |
( |
int |
level, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
print message to stdout if redset_debug is set and it is >= level
◆ redset_err()
void redset_err |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
print error message to stdout
◆ redset_free()
void redset_free |
( |
void * |
ptr | ) |
|
pass address of pointer to be freed, frees memory if not NULL and sets pointer to NULL
◆ redset_malloc()
void* redset_malloc |
( |
size_t |
size, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
◆ redset_sort_kvtree()
void redset_sort_kvtree |
( |
kvtree * |
hash | ) |
|
◆ redset_str_sendrecv()
int redset_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 NULL-terminated string from a process, can specify MPI_PROC_NULL as either send or recv rank
◆ redset_warn()
void redset_warn |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
print warning message to stdout
◆ redset_debug
◆ redset_hostname
◆ redset_mpi_buf_size
◆ redset_page_size
◆ redset_rank