[llvm-commits] [test-suite] r64227 - /test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/scimark2.c
Chris Lattner
sabre at nondot.org
Tue Feb 10 11:32:36 PST 2009
Author: lattner
Date: Tue Feb 10 13:32:34 2009
New Revision: 64227
URL: http://llvm.org/viewvc/llvm-project?rev=64227&view=rev
Log:
factor out constant.
Modified:
test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/scimark2.c
Modified: test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/scimark2.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/scimark2.c?rev=64227&r1=64226&r2=64227&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/scimark2.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/SciMark2-C/scimark2.c Tue Feb 10 13:32:34 2009
@@ -19,6 +19,7 @@
int Sparse_size_M = SPARSE_SIZE_M;
int Sparse_size_nz = SPARSE_SIZE_nz;
int LU_size = LU_SIZE;
+ int SCALE;
/* run the benchmark */
@@ -67,20 +68,22 @@
Sparse_size_nz, min_time, R);
res[5] = kernel_measureLU( LU_size, min_time, R);
-
-
+ /* make output determinstic by scaling results to 0. change this to 1
+ * to see the actual output. */
+ SCALE = 10000000;
+
res[0] = (res[1] + res[2] + res[3] + res[4] + res[5]) / 5;
/* print out results */
printf("NOTE!!! All Mflops disabled to prevent diffs from failing!\n");
- printf("Composite Score: %8.2f\n" ,res[0]/10000000);
- printf("FFT Mflops: %8.2f (N=%d)\n", res[1]/10000000, FFT_size);
+ printf("Composite Score: %8.2f\n" ,res[0]/SCALE);
+ printf("FFT Mflops: %8.2f (N=%d)\n", res[1]/SCALE, FFT_size);
printf("SOR Mflops: %8.2f (%d x %d)\n",
- res[2]/10000000, SOR_size, SOR_size);
- printf("MonteCarlo: Mflops: %8.2f\n", res[3]/10000000);
- printf("Sparse matmult Mflops: %8.2f (N=%d, nz=%d)\n", res[4]/10000000,
+ res[2]/SCALE, SOR_size, SOR_size);
+ printf("MonteCarlo: Mflops: %8.2f\n", res[3]/SCALE);
+ printf("Sparse matmult Mflops: %8.2f (N=%d, nz=%d)\n", res[4]/SCALE,
Sparse_size_M, Sparse_size_nz);
- printf("LU Mflops: %8.2f (M=%d, N=%d)\n", res[5]/10000000,
+ printf("LU Mflops: %8.2f (M=%d, N=%d)\n", res[5]/SCALE,
LU_size, LU_size);
More information about the llvm-commits
mailing list