2#include "CombBLAS/CombBLAS.h"
42template <
typename PARMAT>
71struct Edge_randomizer :
public std::unary_function<std::pair<bool, float>, std::pair<bool, float>>
73 const std::pair<bool, float>
operator()(
const std::pair<bool, float> &
x)
const
75 float edgeRand =
static_cast<float>(rand());
76 return std::pair<bool, float>(
x.first,
edgeRand);
87 for (
int i=0; i<*
len; i++ )
188 cout <<
"Usage: ./rpbfs <Scale>" <<
endl;
189 cout <<
"Example: mpirun -np 4 ./spbfs 20" <<
endl;
202 double initiator[4] = {.57, .19, .19, .05};
SpParMat< int64_t, bool, SpDCCols< int64_t, bool > > PSpMat_Bool
double cblas_transvectime
double cblas_localspmvtime
double cblas_allgathertime
double cblas_alltoalltime
SpParMat< int64_t, bool, SpDCCols< int32_t, bool > > PSpMat_s32p64
void RandomParentBFS(PSpMat_Bool &Aeff)
SpParMat< int64_t, int64_t, SpDCCols< int64_t, int64_t > > PSpMat_Int64
double cblas_mergeconttime
void GenGraph500Data(double initiator[4], int log_numverts, int edgefactor, bool scramble=false, bool packed=false)
void Symmetricize(PARMAT &A)
const std::pair< bool, float > operator()(const std::pair< bool, float > &x) const
friend ostream & operator<<(ostream &os, const ParentType &vertex)
static bool returnedSAID()
static T_promote multiply(const bool &arg1, const T_promote &arg2)
static T_promote add(const T_promote &arg1, const T_promote &arg2)
static ParentType multiply(const T_promote &arg1, const ParentType &arg2)
static bool returnedSAID()
static ParentType add(const ParentType &arg1, const ParentType &arg2)
static void axpy(T_promote a, const ParentType &x, ParentType &y)
static MPI_Op MPI_BFSRAND