1#ifndef _GEN_RMAT_DIST_H_
2#define _GEN_RMAT_DIST_H_
15#ifndef __STDC_CONSTANT_MACROS
16#define __STDC_CONSTANT_MACROS
18#ifndef __STDC_LIMIT_MACROS
19#define __STDC_LIMIT_MACROS
23#include "CombBLAS/CombBLAS.h"
28template<
typename IT,
typename NT>
31 double t01 = MPI_Wtime();
67template <
typename IT,
typename NT>
71 std::vector< SpDCCols<IT, NT> >
partsmat;
73 if(
CMG.layer_grid == 0)
84 for(
int i=0; i<
nparts; ++i)
101 if(
CMG.layer_grid == 0)
108 for(
unsigned int i=0; i<
arrinfo.indarrs.size(); ++i)
113 for(
unsigned int i=0; i<
arrinfo.numarrs.size(); ++i)
125 for(
unsigned int i=0; i<
arrinfo.indarrs.size(); ++i)
129 for(
unsigned int i=0; i<
arrinfo.numarrs.size(); ++i)
void GenGraph500Data(double initiator[4], int log_numverts, int edgefactor, bool scramble=false, bool packed=false)
std::shared_ptr< CommGrid > commGrid
static void Print(const std::string &s)
SpDCCols< IT, NT > * GenRMat(unsigned scale, unsigned EDGEFACTOR, double initiator[4], MPI_Comm &layerworld, bool scramble)
void Generator(unsigned scale, unsigned EDGEFACTOR, double initiator[4], CCGrid &CMG, SpDCCols< IT, NT > &splitmat, bool trans, bool scramble)