From 25f9100da11ccea1d8b5c24160270be425f2cab2 Mon Sep 17 00:00:00 2001 From: Nadesh Ramanathan Date: Sun, 15 Nov 2020 12:44:39 +0000 Subject: lu fix --- benchmarks/polybench-syn/linear-algebra/solvers/lu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/polybench-syn/linear-algebra/solvers/lu.c b/benchmarks/polybench-syn/linear-algebra/solvers/lu.c index 56dadd7..a7ec246 100644 --- a/benchmarks/polybench-syn/linear-algebra/solvers/lu.c +++ b/benchmarks/polybench-syn/linear-algebra/solvers/lu.c @@ -29,7 +29,7 @@ void init_array (int n, { for (j = 0; j <= i; plus(j)) A[i][j] = sdivider(smodulo(-j, n), n) + ONE; - for (j = plus(i); j < n; plus(j)) { + for (j = i+1; j < n; plus(j)) { A[i][j] = 0; } A[i][i] = 1; -- cgit