Skip to content

Commit

Permalink
eliminated 64bit->32bit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
akyrola committed Aug 5, 2013
1 parent 1f09335 commit 90bbedc
Show file tree
Hide file tree
Showing 6 changed files with 498 additions and 154 deletions.
18 changes: 13 additions & 5 deletions example_apps/trianglecounting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,14 @@ struct TriangleCountingProgram : public GraphChiProgram<VertexDataType, EdgeData
};


/**
* Reads preprocessed shards and creates new ones after ordering by
* degree. Some wasted computation here.
*/
void order_by_degree(std::string &filename, int nshards);
void order_by_degree(std::string &filename, int nshards) {

}


int main(int argc, const char ** argv) {
Expand All @@ -439,10 +447,10 @@ int main(int argc, const char ** argv) {

/* Preprocess the file, and order the vertices in the order of their degree.
Mapping from original ids to new ids is saved separately. */
OrderByDegree<EdgeDataType> * orderByDegreePreprocessor = new OrderByDegree<EdgeDataType> ();
int nshards = convert_if_notexists<EdgeDataType>(filename,
get_option_string("nshards", "auto"),
orderByDegreePreprocessor);
int nshards = convert_if_notexists_novalues<EdgeDataType>(filename,
get_option_string("nshards", "auto"));
order_by_degree(filename, nshards);


/* Initialize adjacency container */
adjcontainer = new adjlist_container();
Expand All @@ -451,7 +459,7 @@ int main(int argc, const char ** argv) {

/* Run */
TriangleCountingProgram program;
graphchi_dynamicgraph_engine<VertexDataType, EdgeDataType> engine(filename + orderByDegreePreprocessor->getSuffix(),
graphchi_dynamicgraph_engine<VertexDataType, EdgeDataType> engine(filename + "degord",
nshards, scheduler, m);
engine.set_enable_deterministic_parallelism(false);

Expand Down
Loading

0 comments on commit 90bbedc

Please sign in to comment.