diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-07-09 22:35:11 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-07-09 22:35:11 +0000 |
commit | 7b4c6b886248ee8b6972818d6f5e013dc39182ea (patch) | |
tree | 6773af8ad2c479c15955f740d3dae38cc150b20c /bench/btl/generic_bench/static | |
parent | c9b046d5d5eba6e3f454ec2a125d74a21c61d988 (diff) |
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"
Diffstat (limited to 'bench/btl/generic_bench/static')
-rw-r--r-- | bench/btl/generic_bench/static/bench_static.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bench/btl/generic_bench/static/bench_static.hh b/bench/btl/generic_bench/static/bench_static.hh index 5ae23c1b8..0bc0d441e 100644 --- a/bench/btl/generic_bench/static/bench_static.hh +++ b/bench/btl/generic_bench/static/bench_static.hh @@ -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); |