From 8dfefc152f16f9fd9e8aa0910fd4d23d6543d87e Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Fri, 29 May 2020 12:44:28 -0400 Subject: Add DIS benchmarks and scripts as they were used for Joshua's PRP Note that Neighborhood has been modified to use less space --- dis/original/Transitive/transitive.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dis/original/Transitive/transitive.c') diff --git a/dis/original/Transitive/transitive.c b/dis/original/Transitive/transitive.c index 854d57c..ca16a31 100644 --- a/dis/original/Transitive/transitive.c +++ b/dis/original/Transitive/transitive.c @@ -18,6 +18,7 @@ #include #include #include "DISstressmarkRNG.h" +#include "extra.h" #define MIN_VERTICES 8 #define MAX_VERTICES 16384 @@ -34,7 +35,7 @@ * main() */ -int main(){ +int main(int argc, char** argv){ unsigned int *din, *dout; unsigned int n; unsigned int m; @@ -68,12 +69,14 @@ int main(){ *(din + j*n + i) = randInt(MIN_EDGES, MAX_EDGES); } + SET_UP startTime = time(NULL); for (k=0; k