From 97ba6163d9609df945d6b2bd5ef9b3537f3f56ba Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 17 May 2023 16:11:16 +0200 Subject: SCAN-SSA: Add OpenMP variant --- SCAN-SSA/support/common.h | 2 +- SCAN-SSA/support/params.h | 1 - SCAN-SSA/support/timer.h | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'SCAN-SSA/support') diff --git a/SCAN-SSA/support/common.h b/SCAN-SSA/support/common.h index 1c419da..0bdf7ca 100644 --- a/SCAN-SSA/support/common.h +++ b/SCAN-SSA/support/common.h @@ -58,7 +58,7 @@ typedef struct { #ifndef ENERGY #define ENERGY 0 #endif -#define PRINT 0 +#define PRINT 0 #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" diff --git a/SCAN-SSA/support/params.h b/SCAN-SSA/support/params.h index cdc075d..8d51c98 100644 --- a/SCAN-SSA/support/params.h +++ b/SCAN-SSA/support/params.h @@ -17,7 +17,6 @@ static void usage() { "\n -h help" "\n -w # of untimed warmup iterations (default=1)" "\n -e # of timed repetition iterations (default=3)" - "\n -x Weak (0) or strong (1) scaling (default=0)" "\n" "\nBenchmark-specific options:" "\n -i input size (default=3932160 elements)" diff --git a/SCAN-SSA/support/timer.h b/SCAN-SSA/support/timer.h index 194569f..5411254 100644 --- a/SCAN-SSA/support/timer.h +++ b/SCAN-SSA/support/timer.h @@ -56,8 +56,8 @@ void stop(Timer *timer, int i) { (timer->stopTime[i].tv_usec - timer->startTime[i].tv_usec); } -void printall(Timer *timer) { - for (int i = 0; i <= 5; i++) { +void printall(Timer *timer, int maxt) { + for (int i = 0; i <= maxt; i++) { printf(" timer%d_us=%f", i, timer->time[i]); } printf("\n"); -- cgit v1.2.3