[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
[PATCH] don't bench too much for boundschecking
- To: pooma-dev@xxxxxxxxxxxxxxxxxxxxxx
- Subject: [PATCH] don't bench too much for boundschecking
- From: Richard Guenther <rguenth@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Aug 2004 17:47:24 +0200 (CEST)
This reduces particle benchmarking if POOMA_BOUNDS_CHECK is on
to one time with 100 particles (it takes an awful lot of time).
Ok?
Richard.
2004Aug27 Richard Guenther <richard.guenther@xxxxxxxxxxxxxxxx>
* src/Particles/tests/particle_tests.h: for POOMA_BOUNDS_CHECK
reduce default problem size(s).
Index: Particles/tests/particle_tests.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Particles/tests/particle_tests.h,v
retrieving revision 1.22
diff -u -u -r1.22 particle_tests.h
--- Particles/tests/particle_tests.h 23 Aug 2004 18:44:17 -0000 1.22
+++ Particles/tests/particle_tests.h 27 Aug 2004 15:45:38 -0000
@@ -400,8 +400,13 @@
// Default parameters for the benchmark.
int iters = 1000;
+#if POOMA_BOUNDS_CHECK
+ int startnumparticles = 100;
+ int endnumparticles = 100;
+#else
int startnumparticles = 100;
int endnumparticles = 10000;
+#endif
int multnumparticles = 10;
double movefrac = 0.1;
bool usesync = false;
|