[llvm-commits] [test-suite] r47022 - in /test-suite/trunk/SingleSource/Benchmarks/Misc-C++: ray.cpp sphereflake.cpp
Lauro Ramos Venancio
lauro.venancio at gmail.com
Tue Feb 12 12:16:50 PST 2008
Author: laurov
Date: Tue Feb 12 14:16:49 2008
New Revision: 47022
URL: http://llvm.org/viewvc/llvm-project?rev=47022&view=rev
Log:
Define SMALL_PROBLEM_SIZE.
Modified:
test-suite/trunk/SingleSource/Benchmarks/Misc-C++/ray.cpp
test-suite/trunk/SingleSource/Benchmarks/Misc-C++/sphereflake.cpp
Modified: test-suite/trunk/SingleSource/Benchmarks/Misc-C++/ray.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc-C%2B%2B/ray.cpp?rev=47022&r1=47021&r2=47022&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc-C++/ray.cpp (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc-C++/ray.cpp Tue Feb 12 14:16:49 2008
@@ -101,8 +101,14 @@
return new Group(Sphere(c, 3*r), child);
}
+#ifdef SMALL_PROBLEM_SIZE
+#define TEST_SIZE 128
+#else
+#define TEST_SIZE 512
+#endif
+
int main(int argc, char *argv[]) {
- int level = 6, n = 512, ss = 4;
+ int level = 6, n = TEST_SIZE, ss = 4;
if (argc == 2) level = atoi(argv[1]);
Vec light = unitise(Vec(-1, -3, 2));
Scene *s(create(level, Vec(0, -1, 0), 1));
Modified: test-suite/trunk/SingleSource/Benchmarks/Misc-C++/sphereflake.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc-C%2B%2B/sphereflake.cpp?rev=47022&r1=47021&r2=47022&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc-C++/sphereflake.cpp (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc-C++/sphereflake.cpp Tue Feb 12 14:16:49 2008
@@ -162,8 +162,14 @@
return n;
}
+#ifdef SMALL_PROBLEM_SIZE
+#define TEST_SIZE 256
+#else
+#define TEST_SIZE 1024
+#endif
+
int main(int argc,char*argv[]){
- enum{ w = 1024, h = w }; /* resolution */
+ enum{ w = TEST_SIZE, h = w }; /* resolution */
const int lvl=(argc==2?std::max(atoi(argv[1]),2):6);
int count=childs, dec=lvl;
while(--dec > 1) count=(count*childs)+childs;
More information about the llvm-commits
mailing list