[mlpack-svn] r15598 - mlpack/conf/jenkins-conf/benchmark/benchmark
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Aug 8 12:36:10 EDT 2013
Author: marcus
Date: Thu Aug 8 12:36:09 2013
New Revision: 15598
Log:
Add a new build record only if we have values for the libary.
Modified:
mlpack/conf/jenkins-conf/benchmark/benchmark/run_benchmark.py
Modified: mlpack/conf/jenkins-conf/benchmark/benchmark/run_benchmark.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/benchmark/run_benchmark.py (original)
+++ mlpack/conf/jenkins-conf/benchmark/benchmark/run_benchmark.py Thu Aug 8 12:36:09 2013
@@ -124,7 +124,9 @@
Start the main benchmark routine. The method shows some DEBUG information and
prints a table with the runtime information.
- at para configfile - Start the benchmark with this configuration file.
+ at param configfile - Start the benchmark with this configuration file.
+ at param blocks - Run only the specified blocks.
+ at param log - If True save the reports otherwise use stdout and print the reports.
'''
def Main(configfile, blocks, log):
# Benchmark settings.
@@ -191,17 +193,19 @@
header.append(name)
- # Logging: create a new build and libary record for this libary.
- if log and name not in build:
- libaryId = db.GetLibrary(name)
- libaryId = libaryId[0][0] if libaryId else db.NewLibrary(name)
-
- build[name] = (db.NewBuild(libaryId), libaryId)
+
if not blocks or name in blocks:
run += 1
Log.Info("Libary: " + name)
+ # Logging: create a new build and libary record for this libary.
+ if log and name not in build:
+ libaryId = db.GetLibrary(name)
+ libaryId = libaryId[0][0] if libaryId else db.NewLibrary(name)
+
+ build[name] = (db.NewBuild(libaryId), libaryId)
+
# Load script.
try:
module = Loader.ImportModuleFromPath(script)
More information about the mlpack-svn
mailing list