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/bench.hh | |
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/bench.hh')
-rw-r--r-- | bench/btl/generic_bench/bench.hh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bench/btl/generic_bench/bench.hh b/bench/btl/generic_bench/bench.hh index f46965c2f..484b526e3 100644 --- a/bench/btl/generic_bench/bench.hh +++ b/bench/btl/generic_bench/bench.hh @@ -19,6 +19,8 @@ // #ifndef BENCH_HH #define BENCH_HH + +#include "btl.hh" #include "bench_parameter.hh" #include <iostream> #include "utilities.h" @@ -34,9 +36,10 @@ using namespace std; template <template<class> class Perf_Analyzer, class Action> -void bench( int size_min, int size_max, int nb_point ){ - - // bench name +void bench( int size_min, int size_max, int nb_point ) +{ + if (BtlConfig::skipAction(Action::name())) + return; string filename="bench_"+Action::name()+".dat"; |