[test-suite] r241982 - Revert Polybench/linear-algebra/solvers/gramschmidt print_element

Renato Golin renato.golin at linaro.org
Sat Jul 11 04:39:48 PDT 2015


Author: rengolin
Date: Sat Jul 11 06:39:47 2015
New Revision: 241982

URL: http://llvm.org/viewvc/llvm-project?rev=241982&view=rev
Log:
Revert Polybench/linear-algebra/solvers/gramschmidt print_element

Same as with reg_detect, the bechmark output wasn't bit exact. Adding
a FIXME to make sure we deal with that properly later.

Modified:
    test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.c
    test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output
    test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output.small

Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.c?rev=241982&r1=241981&r2=241982&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.c Sat Jul 11 06:39:47 2015
@@ -53,6 +53,9 @@ void init_array(int ni, int nj,
 
 /* DCE code. Must scan the entire live-out data.
    Can be used also to check the correctness of the output. */
+/* FIXME: This print_array method wasn't converted to use the
+   faster print_element method like the others because it's
+   not bit identical across multiple runs on ARM64. It should be. */
 static
 void print_array(int ni, int nj,
 		 DATA_TYPE POLYBENCH_2D(A,NI,NJ,ni,nj),
@@ -60,20 +63,25 @@ void print_array(int ni, int nj,
 		 DATA_TYPE POLYBENCH_2D(Q,NI,NJ,ni,nj))
 {
   int i, j;
-  char *printmat = malloc(nj*8);
 
-  for (i = 0; i < ni; i++) {
-    for (j = 0; j < nj; j++)
-      print_element(A[i][j], j*8, printmat);
-    fputs(printmat, stderr);
-    for (j = 0; j < nj; j++)
-      print_element(R[i][j], j*8, printmat);
-    fputs(printmat, stderr);
-    for (j = 0; j < nj; j++)
-      print_element(Q[i][j], j*8, printmat);
-    fputs(printmat, stderr);
-  }
-  free(printmat);
+  for (i = 0; i < ni; i++)
+    for (j = 0; j < nj; j++) {
+       fprintf (stderr, DATA_PRINTF_MODIFIER, A[i][j]);
+       if (i % 20 == 0) fprintf (stderr, "\n");
+    }
+  fprintf (stderr, "\n");
+  for (i = 0; i < nj; i++)
+    for (j = 0; j < nj; j++) {
+       fprintf (stderr, DATA_PRINTF_MODIFIER, R[i][j]);
+       if (i % 20 == 0) fprintf (stderr, "\n");
+    }
+  fprintf (stderr, "\n");
+  for (i = 0; i < ni; i++)
+    for (j = 0; j < nj; j++) {
+       fprintf (stderr, DATA_PRINTF_MODIFIER, Q[i][j]);
+       if (i % 20 == 0) fprintf (stderr, "\n");
+    }
+  fprintf (stderr, "\n");
 }
 
 

Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output?rev=241982&r1=241981&r2=241982&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output Sat Jul 11 06:39:47 2015
@@ -1 +1 @@
-8dad7c1bd410ad7972658a7a8f920174
+afd6148086976ac742f6e23d958a9abd

Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output.small
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output.small?rev=241982&r1=241981&r2=241982&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output.small (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/gramschmidt.reference_output.small Sat Jul 11 06:39:47 2015
@@ -1 +1 @@
-872192fedd8da0eb3a2ec5f0f5054b72
+2ef88c2dc96dfee9806c2e3436a724d9





More information about the llvm-commits mailing list