[llvm-commits] CVS: llvm-test/SingleSource/Benchmarks/Misc/ReedSolomon.c mandel.c pi.c richards_benchmark.c whetstone.c
Lauro Ramos Venancio
lauro.venancio at gmail.com
Thu May 3 09:56:39 PDT 2007
Changes in directory llvm-test/SingleSource/Benchmarks/Misc:
ReedSolomon.c updated: 1.2 -> 1.3
mandel.c updated: 1.11 -> 1.12
pi.c updated: 1.5 -> 1.6
richards_benchmark.c updated: 1.4 -> 1.5
whetstone.c updated: 1.3 -> 1.4
---
Log message:
Implement SMALL_PROBLEM_SIZE.
---
Diffs of the changes: (+26 -2)
ReedSolomon.c | 10 ++++++++--
mandel.c | 4 ++++
pi.c | 4 ++++
richards_benchmark.c | 6 ++++++
whetstone.c | 4 ++++
5 files changed, 26 insertions(+), 2 deletions(-)
Index: llvm-test/SingleSource/Benchmarks/Misc/ReedSolomon.c
diff -u llvm-test/SingleSource/Benchmarks/Misc/ReedSolomon.c:1.2 llvm-test/SingleSource/Benchmarks/Misc/ReedSolomon.c:1.3
--- llvm-test/SingleSource/Benchmarks/Misc/ReedSolomon.c:1.2 Sat Nov 25 02:51:02 2006
+++ llvm-test/SingleSource/Benchmarks/Misc/ReedSolomon.c Thu May 3 11:55:46 2007
@@ -416,8 +416,14 @@
int main(void) {
unsigned char rs_in[204], rs_out[204];
int i, j, k;
-
- for (i=0; i<150000; ++i) {
+
+#ifdef SMALL_PROBLEM_SIZE
+#define LENGTH 15000
+#else
+#define LENGTH 150000
+#endif
+
+ for (i=0; i<LENGTH; ++i) {
/* Generate random data */
for (j=0; j<188; ++j) {
rs_in[j] = (random() & 0xFF);
Index: llvm-test/SingleSource/Benchmarks/Misc/mandel.c
diff -u llvm-test/SingleSource/Benchmarks/Misc/mandel.c:1.11 llvm-test/SingleSource/Benchmarks/Misc/mandel.c:1.12
--- llvm-test/SingleSource/Benchmarks/Misc/mandel.c:1.11 Mon Apr 17 12:55:40 2006
+++ llvm-test/SingleSource/Benchmarks/Misc/mandel.c Thu May 3 11:55:46 2007
@@ -6,7 +6,11 @@
#else /* sparc */
#define ESCAPE 2
+#ifdef SMALL_PROBLEM_SIZE
+#define IMAGE_SIZE 500
+#else
#define IMAGE_SIZE 5000
+#endif
#define START_X -2.0
#define START_Y START_X
#define MAX_ITER 10
Index: llvm-test/SingleSource/Benchmarks/Misc/pi.c
diff -u llvm-test/SingleSource/Benchmarks/Misc/pi.c:1.5 llvm-test/SingleSource/Benchmarks/Misc/pi.c:1.6
--- llvm-test/SingleSource/Benchmarks/Misc/pi.c:1.5 Tue Apr 13 22:32:46 2004
+++ llvm-test/SingleSource/Benchmarks/Misc/pi.c Thu May 3 11:55:46 2007
@@ -29,7 +29,11 @@
yran = 5813.0;
ymult = 1307.0;
ymod = 5471.0;
+#ifdef SMALL_PROBLEM_SIZE
+ itot = 4000000;
+#else
itot = 40000000;
+#endif
for(j=1; j<=itot; j++) {
/*
Index: llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c
diff -u llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.4 llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.5
--- llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.4 Sat Nov 25 11:51:02 2006
+++ llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c Thu May 3 11:55:46 2007
@@ -21,9 +21,15 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef SMALL_PROBLEM_SIZE
+#define Count 1000*1000
+#define Qpktcountval 2326389
+#define Holdcountval 930555
+#else
#define Count 10000*1000
#define Qpktcountval 23263894
#define Holdcountval 9305557
+#endif
#define TRUE 1
Index: llvm-test/SingleSource/Benchmarks/Misc/whetstone.c
diff -u llvm-test/SingleSource/Benchmarks/Misc/whetstone.c:1.3 llvm-test/SingleSource/Benchmarks/Misc/whetstone.c:1.4
--- llvm-test/SingleSource/Benchmarks/Misc/whetstone.c:1.3 Sun Feb 29 21:39:02 2004
+++ llvm-test/SingleSource/Benchmarks/Misc/whetstone.c Thu May 3 11:55:46 2007
@@ -99,7 +99,11 @@
float KIPS;
int continuous;
+#ifdef SMALL_PROBLEM_SIZE
+ loopstart = 2500;
+#else
loopstart = 100000; /* see the note about LOOP below */
+#endif
continuous = 0;
II = 1; /* start at the first arg (temp use of II here) */
More information about the llvm-commits
mailing list