COMBINATORIAL_BLAS 1.6
 
Loading...
Searching...
No Matches
pagerank.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 "pagerank.h"
Include dependency graph for pagerank.cpp:

Go to the source code of this file.

Macros

#define DAMPING_FACTOR   0.85
 

Functions

int run_pagerank (dist_graph_t *g, mpi_data_t *comm, double *&pageranks, uint32_t num_iter)
 
int pagerank_output (dist_graph_t *g, double *pageranks, char *output_file)
 
int pagerank_verify (dist_graph_t *g, double *pageranks)
 
int pagerank_dist (dist_graph_t *g, mpi_data_t *comm, uint32_t num_iter, char *output_file)
 

Variables

int procid
 
int nprocs
 
bool verbose
 
bool debug
 
bool verify
 

Macro Definition Documentation

◆ DAMPING_FACTOR

#define DAMPING_FACTOR   0.85

Definition at line 59 of file pagerank.cpp.

Function Documentation

◆ pagerank_dist()

int pagerank_dist ( dist_graph_t g,
mpi_data_t comm,
uint32_t  num_iter,
char *  output_file 
)

Definition at line 331 of file pagerank.cpp.

◆ pagerank_output()

int pagerank_output ( dist_graph_t g,
double *  pageranks,
char *  output_file 
)

Definition at line 233 of file pagerank.cpp.

◆ pagerank_verify()

int pagerank_verify ( dist_graph_t g,
double *  pageranks 
)

Definition at line 288 of file pagerank.cpp.

◆ run_pagerank()

int run_pagerank ( dist_graph_t g,
mpi_data_t comm,
double *&  pageranks,
uint32_t  num_iter 
)

Definition at line 65 of file pagerank.cpp.

Variable Documentation

◆ debug

bool debug

Definition at line 62 of file pagerank.cpp.

◆ nprocs

int nprocs

Definition at line 61 of file pagerank.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 62 of file pagerank.cpp.