int main(int argc, char **argv) { Roomy_init(&argc, &argv); createSimpleGraph(); Roomy_finalize(); }
int main(int argc, char **argv) { Roomy_init(&argc, &argv); if( starGraphDegreeCentrality() && circularDegreeCentrality() && starGraphDegreePrestige() ) { printf("All tests passed!\n"); } else { printf("A test has failed check logs....\n"); } Roomy_finalize(); }
int main(int argc, char ** argv) { Roomy_init(&argc,&argv); if(createGraph() && destroyGraph() && addNode() && containsNodeTest() && addMultipleNodes() && ableToAddMoreThanInitialSize() && addingSameNodeDoesntIncreaseCount() && addEdgeTest()) { printf("All tests passed\n"); } else { printf("ERROR OCCURRED... SEE LOGS\n"); } Roomy_finalize(); }
int main(int argc, char **argv) { Roomy_init(&argc, &argv); uint64 maxEdges = 12710; uint64 initialCapacity = 999; RoomyGraph *g = RoomyGraph_make("wiki-vote-cf", maxEdges, initialCapacity); printf("Populating Graph\n"); FILE *f1 = fopen("./datasets/Wiki-Vote50000.dot", "r"); RoomyGraph_addNodesFromDigraph(g, f1); FILE *f2 = fopen("./datasets/Wiki-Vote50000.dot", "r"); RoomyGraph_addEdgesFromDigraph(g, f2); fclose(f1); fclose(f2); printf("Graph has been populated\n"); printf("Clique Finding started at %ld\n", time(NULL)); RoomyGraph_findCliques(g); printf("Clique Finding ended at %ld\n", time(NULL)); Roomy_finalize(); }
void main(int argc, char **argv) { printf("---- start ----\n"); Roomy_init(&argc, &argv); x = RoomyArray_makeBytes("x", sizeof(uint64), N); // Populate the RA with values from 9999 to 0 RoomyArray_mapAndModify(x, addElement); RoomyArray_sync(x); //RoomyArray_map(x, printElements); y = RoomyArray_makeBytes("y", sizeof(uint64), N); RoomyArray_registerAccessFunc(x, setInY, sizeof(uint64)); RoomyArray_registerUpdateFunc(y, setYi, sizeof(uint64)); RoomyArray_map(x, addToY); RoomyArray_sync(x); RoomyArray_sync(y); printf("x:\n"); RoomyArray_map(x, printElements); printf("y:\n"); RoomyArray_map(y, printElements); printf("---- done ----\n"); }
int main(int argc, char **argv) { // to make sure we are the only ones using the machine, we start one process // for each core, but only one process per node runs the experiment. The // others just char* raceFile = "/tmp/roomybandwidthrace"; FILE* f = fopen(raceFile, "wx"); // 'x' means create if it doesn't exist if (!f) { while(1) { sleep(120); } } else { fclose(f); } // to clean up previous roomy runs on requin recursivelyDeleteDir("/tmp/roomy"); uint64 MB = 1048576; Roomy_init(&argc, &argv); Roomy_log("Beginning bandwidth test\n"); Timer timer; uint64 totalBytes = bytesToWrite * RGLO_NUM_SLAVES; uint64 usec; double sec, MBps; Roomy_log("Beginning LOCAL bandwidth test\n"); Timer_start(&timer); openBuffers(); testLocalBW(); closeBuffers(); Roomy_waitForRemoteWrites(); Timer_stop(&timer); usec = Timer_elapsed_usec(&timer); sec = usec / 1000000; MBps = (totalBytes / MB) / sec; Roomy_log("LOCAL done. %i nodes, %lli total bytes, %f seconds\n", RGLO_NUM_SLAVES, totalBytes, sec); Roomy_log("LOCAL BW: %f MB/s\n", MBps); Roomy_log("Beginning REMOTE bandwidth test\n"); Timer_start(&timer); openBuffers(); testRemoteBW(); closeBuffers(); Roomy_waitForRemoteWrites(); Timer_stop(&timer); usec = Timer_elapsed_usec(&timer); sec = usec / 1000000; MBps = (totalBytes / MB) / sec; Roomy_log("REMOTE done. %i nodes, %lli total bytes, %f seconds\n", RGLO_NUM_SLAVES, totalBytes, sec); Roomy_log("REMOTE BW: %f MB/s\n", MBps); char dir[RGLO_STR_SIZE]; sprintf(dir, "%sbandwidthTest/", RGLO_DATA_PATH); Roomy_destroyDir(dir); unlink(raceFile); //Roomy_finalize(); return 0; }
int main(int argc, char **argv) { Roomy_init(&argc, &argv); pancakeHashTable(); Roomy_finalize(); return 0; }