Define a top-level application file (graph.cpp in this design) that contains an instance of the graph class:
#include "graph.h"
int base_col = 0, base_row = 0, matrixCtr = 0;
GeMM g;
#ifdef __AIESIM__
int main(void)
{
g.init();
g.run(GRAPH_ITER_CNT);
g.end();
return 0;
}
#endif