-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cc
More file actions
28 lines (21 loc) · 842 Bytes
/
main.cc
File metadata and controls
28 lines (21 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "boost_dynamic_graph.h"
int main(int argc, char *argv[]) {
// Initialize MPI
boost::mpi::environment env(argc, argv);
// Run the benchmark
DynoGraph::Benchmark::run<boost_dynamic_graph>(argc, argv);
return 0;
}
/*
Notes
I want to reduce the amount of MPI code that needs to go in dynograph_util
Every object and function should either execute the same way in all processes,
or be empty and put everything in rank 0.
Args: can be parsed the same way in all processes
Dataset: load in rank 0, empty in all others
getMaxVertexID still has to be right (do in rank 0 and scatter)
getBatch needs to return an empty batch
getTimestampForWindow needs to be right (do in rank 0 and scatter)
Logger: Singleton, aggregate messages to be printed in rank 0
Hooks: Use existing MPI aggregation code
*/