From d9c5472a2835f55d561cbde1580ce7e01445bbf4 Mon Sep 17 00:00:00 2001 From: mtzikara Date: Mon, 24 Sep 2018 10:11:07 +0200 Subject: [PATCH] Delete serial_gs_pagerank.c --- serial_v2/serial_gs_pagerank.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 serial_v2/serial_gs_pagerank.c diff --git a/serial_v2/serial_gs_pagerank.c b/serial_v2/serial_gs_pagerank.c deleted file mode 100644 index 041d784..0000000 --- a/serial_v2/serial_gs_pagerank.c +++ /dev/null @@ -1,33 +0,0 @@ -#include - -#include "serial_gs_pagerank_functions.h" - -struct timeval startwtime, endwtime; -double seq_time; - -int main(int argc, char **argv) { - int **directedWebGraph; - int **transitionMatrix; - double *pagerankVector; - Parameters parameters; - - parseArguments(argc, argv, ¶meters); - - initialize(&directedWebGraph, &transitionMatrix, &pagerankVector, ¶meters); - - // Starts wall-clock timer - gettimeofday (&startwtime, NULL); - - int iterations = pagerank(&transitionMatrix, &pagerankVector, parameters); - if (parameters.verbose) { - printf("\n----- Results -----\ - \nTotal iterations = %d\n", iterations); - } - - // Stops wall-clock timer - gettimeofday (&endwtime, NULL); - double seq_time = (double)((endwtime.tv_usec - startwtime.tv_usec)/1.0e6 + - endwtime.tv_sec - startwtime.tv_sec); - printf("%s wall clock time = %f\n","Pagerank (Gauss-Seidel method), serial implementation", - seq_time); -}