[test-suite] r193930 - Linpack: Use a fixed number of iterations for the linpack benchmark

Arnold Schwaighofer aschwaighofer at apple.com
Sat Nov 2 10:42:36 PDT 2013


Author: arnolds
Date: Sat Nov  2 12:42:36 2013
New Revision: 193930

URL: http://llvm.org/viewvc/llvm-project?rev=193930&view=rev
Log:
Linpack: Use a fixed number of iterations for the linpack benchmark

Before, the benchmark used the executation time of running a loop containing
some function calls in the computation of how many iterations to run a later
loop.

Replace this by a fixed number of iterations.

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

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=193930&r1=193929&r2=193930&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Linpack/linpack-pc.c Sat Nov  2 12:42:36 2013
@@ -427,8 +427,12 @@ int main ()
             }
         }
         while (pass < 0);
-        
-        ntimes =  5.0 * (double)ntimes / time2;
+
+#ifdef SMALL_PROBLEM_SIZE
+        ntimes = 100;
+#else
+        ntimes =  1000;
+#endif
         if (ntimes == 0) ntimes = 1;
 
         fprintf (stderr,"Passes used %10d \n\n", 0);





More information about the llvm-commits mailing list