diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-17 16:11:16 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-17 16:11:16 +0200 |
commit | 97ba6163d9609df945d6b2bd5ef9b3537f3f56ba (patch) | |
tree | 7d667c7d5dfb085f654940dea94c14eff6755e05 /SCAN-SSA/support | |
parent | b40af5568dd555326748e1cd0193a2a767f7c959 (diff) |
SCAN-SSA: Add OpenMP variant
Diffstat (limited to 'SCAN-SSA/support')
-rw-r--r-- | SCAN-SSA/support/common.h | 2 | ||||
-rw-r--r-- | SCAN-SSA/support/params.h | 1 | ||||
-rw-r--r-- | SCAN-SSA/support/timer.h | 4 |
3 files changed, 3 insertions, 4 deletions
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 <W> # of untimed warmup iterations (default=1)" "\n -e <E> # of timed repetition iterations (default=3)" - "\n -x <X> Weak (0) or strong (1) scaling (default=0)" "\n" "\nBenchmark-specific options:" "\n -i <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");
|