[PATCH] test suite: SingleSource/Benchmarks/Linpack
robert lytton
robert at xmos.com
Thu Feb 13 11:54:01 PST 2014
Replace stdout with stderr to make deterministic
(xcore does not buffer stdout/stderr)
http://llvm-reviews.chandlerc.com/D2787
Files:
SingleSource/Benchmarks/Linpack/linpack-pc.c
SingleSource/Benchmarks/Linpack/linpack-pc.reference_output
Index: SingleSource/Benchmarks/Linpack/linpack-pc.c
===================================================================
--- SingleSource/Benchmarks/Linpack/linpack-pc.c
+++ SingleSource/Benchmarks/Linpack/linpack-pc.c
@@ -286,10 +286,10 @@
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 @@
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);
Index: SingleSource/Benchmarks/Linpack/linpack-pc.reference_output
===================================================================
--- SingleSource/Benchmarks/Linpack/linpack-pc.reference_output
+++ SingleSource/Benchmarks/Linpack/linpack-pc.reference_output
@@ -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 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2787.1.patch
Type: text/x-patch
Size: 2537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/f195e221/attachment.bin>
More information about the llvm-commits
mailing list