#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
|
void | setup_globals (void) |
|
void | free_csr_graph (csr_graph *const g) |
|
void * | xMPI_Alloc_mem (size_t nbytes) |
|
void * | xmalloc (size_t nbytes) |
|
void * | xcalloc (size_t n, size_t unit) |
|
void * | xrealloc (void *p, size_t nbytes) |
|
void | convert_graph_to_csr (const int64_t nedges, const int64_t *const edges, csr_graph *const g) |
|
void | find_bfs_roots (int *num_bfs_roots, const csr_graph *const g, const uint64_t seed1, const uint64_t seed2, int64_t *const bfs_roots) |
|
int | validate_bfs_result (const csr_graph *const g, const int64_t root, const int64_t *const pred, const int64_t nvisited) |
|
void | run_mpi_bfs (const csr_graph *const g, int64_t root, int64_t *pred, int64_t *nvisited) |
|
◆ DIV_SIZE
#define DIV_SIZE |
( |
|
v | ) |
((v) >> lgsize) |
◆ INT64_T_MPI_TYPE
#define INT64_T_MPI_TYPE MPI_LONG_LONG |
◆ MOD_SIZE
◆ SIZE_MUST_BE_A_POWER_OF_TWO
#define SIZE_MUST_BE_A_POWER_OF_TWO |
◆ VERTEX_LOCAL
#define VERTEX_LOCAL |
( |
|
v | ) |
((size_t)(DIV_SIZE(v))) |
◆ VERTEX_OWNER
#define VERTEX_OWNER |
( |
|
v | ) |
((int)(MOD_SIZE(v))) |
◆ VERTEX_TO_GLOBAL
◆ csr_graph
◆ convert_graph_to_csr()
◆ find_bfs_roots()
void find_bfs_roots |
( |
int * |
num_bfs_roots, |
|
|
const csr_graph *const |
g, |
|
|
const uint64_t |
seed1, |
|
|
const uint64_t |
seed2, |
|
|
int64_t *const |
bfs_roots |
|
) |
| |
◆ free_csr_graph()
◆ run_mpi_bfs()
◆ setup_globals()
void setup_globals |
( |
void |
| ) |
|
◆ validate_bfs_result()
◆ xcalloc()
void* xcalloc |
( |
size_t |
n, |
|
|
size_t |
unit |
|
) |
| |
◆ xmalloc()
void* xmalloc |
( |
size_t |
nbytes | ) |
|
◆ xMPI_Alloc_mem()
void* xMPI_Alloc_mem |
( |
size_t |
nbytes | ) |
|
◆ xrealloc()
void* xrealloc |
( |
void * |
p, |
|
|
size_t |
nbytes |
|
) |
| |
◆ lgsize
◆ rank
◆ size
◆ size_minus_one