[test-suite] r202385 - Replace stdout with stderr to make deterministic

Robert Lytton robert at xmos.com
Thu Feb 27 04:45:16 PST 2014


Author: rlytton
Date: Thu Feb 27 06:45:16 2014
New Revision: 202385

URL: http://llvm.org/viewvc/llvm-project?rev=202385&view=rev
Log:
Replace stdout with stderr to make deterministic

SingleSource/Benchmarks/Linpack

Modified:
    test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c
    test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.reference_output

Modified: test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c?rev=202385&r1=202384&r2=202385&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c Thu Feb 27 06:45:16 2014
@@ -286,10 +286,10 @@ int main ()
         cray = .056; 
         n = 100;
 
-        fprintf(stdout,ROLLING);fprintf(stdout,PREC);
-        fprintf(stdout,"Precision Linpack Benchmark - PC Version in 'C/C++'\n\n");
-        fprintf(stdout,"Compiler     %s\n",compiler);
-        fprintf(stdout,"Optimisation %s\n\n",options);
+        fprintf(stderr,ROLLING);fprintf(stderr,PREC);
+        fprintf(stderr,"Precision Linpack Benchmark - PC Version in 'C/C++'\n\n");
+        fprintf(stderr,"Compiler     %s\n",compiler);
+        fprintf(stderr,"Optimisation %s\n\n",options);
 
         ops = (2.0e0*(n*n*n))/3.0 + 2.0*(n*n);
 
@@ -326,9 +326,9 @@ int main ()
         x1 = x[0] - 1;
         x2 = x[n-1] - 1;
         
-        printf("norm resid      resid           machep");
-        printf("         x[0]-1          x[n-1]-1\n");
-        printf("%6.1f %17.8e%17.8e%17.8e%17.8e\n\n",
+        fprintf(stderr,"norm resid      resid           machep");
+        fprintf(stderr,"         x[0]-1          x[n-1]-1\n");
+        fprintf(stderr,"%6.1f %17.8e%17.8e%17.8e%17.8e\n\n",
                (double)residn, (double)resid, (double)epsn, 
                (double)x1, (double)x2);
 

Modified: test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.reference_output?rev=202385&r1=202384&r2=202385&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.reference_output (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.reference_output Thu Feb 27 06:45:16 2014
@@ -1,3 +1,11 @@
+Rolled Single Precision Linpack Benchmark - PC Version in 'C/C++'
+
+Compiler     INSERT COMPILER NAME HERE
+Optimisation INSERT OPTIMISATION OPTIONS HERE
+
+norm resid      resid           machep         x[0]-1          x[n-1]-1
+   1.6    3.80277634e-05   1.19209290e-07  -1.38282776e-05  -7.51018524e-06
+
 Times are reported for matrices of order          100
 1 pass times for array with leading dimension of  201
 
@@ -27,12 +35,4 @@ Times for array with leading dimension o
 
       dgefa      dgesl      total     Mflops       unit      ratio
 Average                                 0.00
-Rolled Single Precision Linpack Benchmark - PC Version in 'C/C++'
-
-Compiler     INSERT COMPILER NAME HERE
-Optimisation INSERT OPTIMISATION OPTIONS HERE
-
-norm resid      resid           machep         x[0]-1          x[n-1]-1
-   1.6    3.80277634e-05   1.19209290e-07  -1.38282776e-05  -7.51018524e-06
-
 exit 0





More information about the llvm-commits mailing list