aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/polybench-syn/stencils
diff options
context:
space:
mode:
authorNadesh Ramanathan <nadeshramanathan88@gmail.com>2020-11-17 09:06:04 +0000
committerNadesh Ramanathan <nadeshramanathan88@gmail.com>2020-11-17 09:06:04 +0000
commit38b249970456a55f0a69ff28070887367e113205 (patch)
treeb5feacc01671b00b55d34a1a41e0e6e3d9e9fa88 /benchmarks/polybench-syn/stencils
parent25f9100da11ccea1d8b5c24160270be425f2cab2 (diff)
downloadvericert-kvx-38b249970456a55f0a69ff28070887367e113205.tar.gz
vericert-kvx-38b249970456a55f0a69ff28070887367e113205.zip
final checks reworked and including compilation time in scriptdev-experiments
Diffstat (limited to 'benchmarks/polybench-syn/stencils')
-rw-r--r--benchmarks/polybench-syn/stencils/fdtd-2d.c9
-rw-r--r--benchmarks/polybench-syn/stencils/heat-3d.c7
-rw-r--r--benchmarks/polybench-syn/stencils/jacobi-1d.c7
-rw-r--r--benchmarks/polybench-syn/stencils/jacobi-2d.c8
-rw-r--r--benchmarks/polybench-syn/stencils/seidel-2d.c7
5 files changed, 38 insertions, 0 deletions
diff --git a/benchmarks/polybench-syn/stencils/fdtd-2d.c b/benchmarks/polybench-syn/stencils/fdtd-2d.c
index 853d362..c29982e 100644
--- a/benchmarks/polybench-syn/stencils/fdtd-2d.c
+++ b/benchmarks/polybench-syn/stencils/fdtd-2d.c
@@ -10,6 +10,11 @@
/* fdtd-2d.c: this file is part of PolyBench/C */
+#ifndef SYNTHESIS
+#include <stdio.h>
+#endif
+
+
#include "../include/misc.h"
#define plus(i) i = i + ONE
@@ -64,6 +69,10 @@ int print_array(int nx,
res ^= hz[i][j];
}
+#ifndef SYNTHESIS
+ printf("finished %u\n", res);
+#endif
+
return res;
}
diff --git a/benchmarks/polybench-syn/stencils/heat-3d.c b/benchmarks/polybench-syn/stencils/heat-3d.c
index 8df16d4..4bc92ee 100644
--- a/benchmarks/polybench-syn/stencils/heat-3d.c
+++ b/benchmarks/polybench-syn/stencils/heat-3d.c
@@ -11,6 +11,10 @@
#include "../include/misc.h"
+#ifndef SYNTHESIS
+#include <stdio.h>
+#endif
+
#define plus(i) i = i + ONE
static
void init_array (int n,
@@ -43,6 +47,9 @@ int print_array(int n,
for (k = 0; k < n; plus(k)) {
res ^= A[i][j][k];
}
+#ifndef SYNTHESIS
+ printf("finished %u\n", res);
+#endif
return res;
}
diff --git a/benchmarks/polybench-syn/stencils/jacobi-1d.c b/benchmarks/polybench-syn/stencils/jacobi-1d.c
index 95cbb35..7b1d692 100644
--- a/benchmarks/polybench-syn/stencils/jacobi-1d.c
+++ b/benchmarks/polybench-syn/stencils/jacobi-1d.c
@@ -11,6 +11,10 @@
#include "../include/misc.h"
+#ifndef SYNTHESIS
+#include <stdio.h>
+#endif
+
#define plus(i) i = i + ONE
static
void init_array (int n,
@@ -45,6 +49,9 @@ int print_array(int n,
{
res ^= A[i];
}
+#ifndef SYNTHESIS
+ printf("finished %u\n", res);
+#endif
return res;
}
diff --git a/benchmarks/polybench-syn/stencils/jacobi-2d.c b/benchmarks/polybench-syn/stencils/jacobi-2d.c
index 11349f4..2d61d76 100644
--- a/benchmarks/polybench-syn/stencils/jacobi-2d.c
+++ b/benchmarks/polybench-syn/stencils/jacobi-2d.c
@@ -11,6 +11,11 @@
#include "../include/misc.h"
+#ifndef SYNTHESIS
+#include <stdio.h>
+#endif
+
+
#define plus(i) i = i + ONE
static
void init_array (int n,
@@ -46,6 +51,9 @@ int print_array(int n,
for (j = 0; j < n; plus(j)) {
res ^= A[i][j];
}
+#ifndef SYNTHESIS
+ printf("finished %u\n", res);
+#endif
return res;
}
diff --git a/benchmarks/polybench-syn/stencils/seidel-2d.c b/benchmarks/polybench-syn/stencils/seidel-2d.c
index 23ddc74..eb48acc 100644
--- a/benchmarks/polybench-syn/stencils/seidel-2d.c
+++ b/benchmarks/polybench-syn/stencils/seidel-2d.c
@@ -11,6 +11,10 @@
#include "../include/misc.h"
+#ifndef SYNTHESIS
+#include <stdio.h>
+#endif
+
#define plus(i) i = i + ONE
static
void init_array (int n,
@@ -41,6 +45,9 @@ int print_array(int n,
for (j = 0; j < n; plus(j)) {
res ^= A[i][j];
}
+#ifndef SYNTHESIS
+ printf("finished %u\n", res);
+#endif
return res;
}