[llvm-commits] [test-suite] r157648 - in /test-suite/trunk/MultiSource/Benchmarks: Makefile tscp181/book.c
Evan Cheng
evan.cheng at apple.com
Tue May 29 14:58:16 PDT 2012
Author: evancheng
Date: Tue May 29 16:58:16 2012
New Revision: 157648
URL: http://llvm.org/viewvc/llvm-project?rev=157648&view=rev
Log:
Update tscp181 to disable use of opening book (which uses file i/o and random numbers). Re-enable the benchmark.
Modified:
test-suite/trunk/MultiSource/Benchmarks/Makefile
test-suite/trunk/MultiSource/Benchmarks/tscp181/book.c
Modified: test-suite/trunk/MultiSource/Benchmarks/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Makefile?rev=157648&r1=157647&r2=157648&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Makefile (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Makefile Tue May 29 16:58:16 2012
@@ -1,12 +1,12 @@
# MultiSource/Benchmarks Makefile: Build all subdirectories automatically
LEVEL = ../..
-# Disabled: OptimizerEval, tscp181.
+# Disabled: OptimizerEval.
PARALLEL_DIRS := Fhourstones Fhourstones-3.1 \
McCat Olden Ptrdist llubenchmark \
sim FreeBench MallocBench Prolangs-C SciMark2-C mediabench\
nbench ASCI_Purple MiBench Trimaran VersaBench NPB-serial\
- BitBench ASC_Sequoia
+ BitBench ASC_Sequoia tscp181
ifndef DISABLE_CXX
PARALLEL_DIRS += Prolangs-C++ PAQ8p tramp3d-v4 Bullet
Modified: test-suite/trunk/MultiSource/Benchmarks/tscp181/book.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/tscp181/book.c?rev=157648&r1=157647&r2=157648&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/tscp181/book.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/tscp181/book.c Tue May 29 16:58:16 2012
@@ -25,10 +25,12 @@
void open_book()
{
+#if 0
srand(time(NULL));
book_file = fopen("book.txt", "r");
if (!book_file)
printf("Opening book missing.\n");
+#endif
}
@@ -36,9 +38,11 @@
void close_book()
{
+#if 0
if (book_file)
fclose(book_file);
book_file = NULL;
+#endif
}
@@ -55,8 +59,11 @@
int moves = 0;
int total_count = 0;
- if (!book_file || hply > 25)
- return -1;
+ /* Disable this. */
+
+ return -1;
+ //if (!book_file || hply > 25)
+ //return -1;
/* line is a string with the current line, e.g., "e2e4 e7e5 g1f3 " */
line[0] = '\0';
More information about the llvm-commits
mailing list