COMBINATORIAL_BLAS 1.6
 
Loading...
Searching...
No Matches
kcore.cpp File Reference
#include <mpi.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <fstream>
#include "dist_graph.h"
#include "comms.h"
#include "util.h"
#include "kcore.h"
Include dependency graph for kcore.cpp:

Go to the source code of this file.

Macros

#define KCORE_NOT_ASSIGNED   18446744073709551615
 
#define MAX_ITER   10000
 

Functions

int run_kcore (dist_graph_t *g, mpi_data_t *comm, queue_data_t *q, uint64_t *kcores, uint32_t num_iter, bool run_approx)
 
int kcore_output (dist_graph_t *g, uint64_t *kcores, char *output_file)
 
int kcore_verify (dist_graph_t *g, uint64_t *kcores, uint64_t num_to_output)
 
int kcore_dist (dist_graph_t *g, mpi_data_t *comm, queue_data_t *q, uint32_t num_iter, char *output_file, bool run_approx)
 

Variables

int procid
 
int nprocs
 
bool verbose
 
bool debug
 
bool verify
 

Macro Definition Documentation

◆ KCORE_NOT_ASSIGNED

#define KCORE_NOT_ASSIGNED   18446744073709551615

Definition at line 61 of file kcore.cpp.

◆ MAX_ITER

#define MAX_ITER   10000

Definition at line 62 of file kcore.cpp.

Function Documentation

◆ kcore_dist()

int kcore_dist ( dist_graph_t g,
mpi_data_t comm,
queue_data_t q,
uint32_t  num_iter,
char *  output_file,
bool  run_approx 
)

Definition at line 329 of file kcore.cpp.

◆ kcore_output()

int kcore_output ( dist_graph_t g,
uint64_t kcores,
char *  output_file 
)

Definition at line 226 of file kcore.cpp.

◆ kcore_verify()

int kcore_verify ( dist_graph_t g,
uint64_t kcores,
uint64_t  num_to_output 
)

Definition at line 274 of file kcore.cpp.

◆ run_kcore()

int run_kcore ( dist_graph_t g,
mpi_data_t comm,
queue_data_t q,
uint64_t kcores,
uint32_t  num_iter,
bool  run_approx 
)

Definition at line 64 of file kcore.cpp.

Variable Documentation

◆ debug

bool debug

Definition at line 59 of file kcore.cpp.

◆ nprocs

int nprocs

Definition at line 58 of file kcore.cpp.

◆ procid

int procid
extern

Definition at line 55 of file main.cpp.

◆ verbose

bool verbose
extern

Definition at line 56 of file main.cpp.

◆ verify

bool verify

Definition at line 59 of file kcore.cpp.