aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/polybench-syn/linear-algebra/blas/symm.c
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-11-14 16:23:00 +0000
committerYann Herklotz <git@yannherklotz.com>2020-11-14 16:23:00 +0000
commit4201a38997543ceedad52f77b992dd8eb4a2ee5e (patch)
tree16b4adb28028e21f3ae9d46539167ece72c1c4a8 /benchmarks/polybench-syn/linear-algebra/blas/symm.c
parent43773b8d4a69dfd30759db2a5026a4f44cdac4cb (diff)
parent95861dbef966e2cb612b303615681fc29c3acd3d (diff)
downloadvericert-kvx-4201a38997543ceedad52f77b992dd8eb4a2ee5e.tar.gz
vericert-kvx-4201a38997543ceedad52f77b992dd8eb4a2ee5e.zip
Merge branch 'dev-experiments'
Diffstat (limited to 'benchmarks/polybench-syn/linear-algebra/blas/symm.c')
-rw-r--r--benchmarks/polybench-syn/linear-algebra/blas/symm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmarks/polybench-syn/linear-algebra/blas/symm.c b/benchmarks/polybench-syn/linear-algebra/blas/symm.c
index a5e8539..f13577b 100644
--- a/benchmarks/polybench-syn/linear-algebra/blas/symm.c
+++ b/benchmarks/polybench-syn/linear-algebra/blas/symm.c
@@ -9,6 +9,8 @@
*/
/* symm.c: this file is part of PolyBench/C */
+#include "../../include/misc.h"
+
#define plus(i) i = i + ONE
static
void init_array(int m, int n,
@@ -26,12 +28,12 @@ void init_array(int m, int n,
*beta = 2;
for (i = 0; i < m; plus(i))
for (j = 0; j < n; plus(j)) {
- C[i][j] = (int) ((i+j) % HUND) / m;
- B[i][j] = (int) ((n+i-j) % HUND) / m;
+ C[i][j] = (int) divider(smodulo(i+j, HUND), m);
+ B[i][j] = (int) divider(smodulo(n+i-j, HUND), m);
}
for (i = 0; i < m; plus(i)) {
for (j = 0; j <=i; plus(j))
- A[i][j] = (int) ((i+j) % HUND) / m;
+ A[i][j] = (int) divider(smodulo(i+j, HUND), m);
for (j = i+ONE; j < m; plus(j))
A[i][j] = -999;
}
@@ -64,7 +66,6 @@ void kernel_symm(int m, int n,
int ONE = 1;
int i, j, k;
int temp2;
-#pragma scop
for (i = 0; i < m; plus(i))
for (j = 0; j < n; plus(j) )
{
@@ -75,7 +76,6 @@ void kernel_symm(int m, int n,
}
C[i][j] = beta * C[i][j] + alpha*B[i][j] * A[i][i] + alpha * temp2;
}
-#pragma endscop
}