[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/Makefile main.c

Anton Korobeynikov asl at math.spbu.ru
Thu Jan 11 16:04:42 PST 2007



Changes in directory llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT:

Makefile updated: 1.1 -> 1.2
main.c updated: 1.1 -> 1.2
---
Log message:

Don't use rand() for input: it's runtime-dependent.
Add tolerance.


---
Diffs of the changes:  (+3 -4)

 Makefile |    1 +
 main.c   |    6 ++----
 2 files changed, 3 insertions(+), 4 deletions(-)


Index: llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/Makefile
diff -u llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/Makefile:1.1 llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/Makefile:1.2
--- llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/Makefile:1.1	Tue Jan  9 18:01:15 2007
+++ llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/Makefile	Thu Jan 11 18:04:27 2007
@@ -3,5 +3,6 @@
 PROG     = telecomm-fft
 LDFLAGS  = -lm
 RUN_OPTIONS = 8 32768 -i
+FP_ABSTOLERANCE :=  0.00001
 
 include $(LEVEL)/MultiSource/Makefile.multisrc


Index: llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c
diff -u llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c:1.1 llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c:1.2
--- llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c:1.1	Tue Jan  9 18:01:15 2007
+++ llvm-test/MultiSource/Benchmarks/MiBench/telecomm-FFT/main.c	Thu Jan 11 18:04:27 2007
@@ -27,8 +27,6 @@
 	MAXSIZE=atoi(argv[2]);
 	MAXWAVES=atoi(argv[1]);
 		
- srand(1);
-
  RealIn=(float*)malloc(sizeof(float)*MAXSIZE);
  ImagIn=(float*)malloc(sizeof(float)*MAXSIZE);
  RealOut=(float*)malloc(sizeof(float)*MAXSIZE);
@@ -39,8 +37,8 @@
  /* Makes MAXWAVES waves of random amplitude and period */
 	for(i=0;i<MAXWAVES;i++) 
 	{
-		coeff[i] = rand()%1000;
-		amp[i] = rand()%1000;
+		coeff[i] = i%1000;
+		amp[i] = i%1000;
 	}
  for(i=0;i<MAXSIZE;i++) 
  {






More information about the llvm-commits mailing list