in BTL: a specific bench/action can be selected at runtime, e.g.:

BTL_CONFIG="-a ata" ctest -V -R eigen
  run the all benchmarks having "ata" in their name for all
  libraries matching the regexp "eigen"
This commit is contained in:
Gael Guennebaud
2008-07-09 22:35:11 +00:00
parent c9b046d5d5
commit 7b4c6b8862
23 changed files with 415 additions and 122 deletions

View File

@@ -19,6 +19,8 @@
//
#ifndef BENCH_STATIC_HH
#define BENCH_STATIC_HH
#include "btl.hh"
#include "bench_parameter.hh"
#include <iostream>
#include "utilities.h"
@@ -34,6 +36,9 @@ using namespace std;
template <template<class> class Perf_Analyzer, template<class> class Action, template<class,int> class Interface>
void bench_static(void)
{
if (BtlConfig::skipAction(Action<Interface<REAL_TYPE,10> >::name()))
return;
string filename = "bench_" + Action<Interface<REAL_TYPE,10> >::name() + ".dat";
INFOS("starting " << filename);