diff options
author | 2008-08-04 23:12:48 +0000 | |
---|---|---|
committer | 2008-08-04 23:12:48 +0000 | |
commit | a7a05382d1c51964bf3ea0536c6ddd9cc9888b72 (patch) | |
tree | 413a9ecf342bf59ff685495eff70f999ee7803ac /bench/btl/generic_bench/static | |
parent | c2f8ecf46683adcab0db05199ee2ebe15e6ada4a (diff) |
Add a LU decomposition action in BTL and various cleaning in BTL. For instance
all per plot settings have been moved to a single file, go_mean now takes an
optional second argument "tiny" to generate plots for tiny matrices, and
output of comparison information wrt to previous benchs (if any).
Diffstat (limited to 'bench/btl/generic_bench/static')
-rw-r--r-- | bench/btl/generic_bench/static/bench_static.hh | 6 | ||||
-rw-r--r-- | bench/btl/generic_bench/static/static_size_generator.hh | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/bench/btl/generic_bench/static/bench_static.hh b/bench/btl/generic_bench/static/bench_static.hh index 730590c67..23b55ecff 100644 --- a/bench/btl/generic_bench/static/bench_static.hh +++ b/bench/btl/generic_bench/static/bench_static.hh @@ -27,8 +27,8 @@ #include "xy_file.hh" #include "static/static_size_generator.hh" #include "timers/portable_perf_analyzer.hh" -#include "timers/mixed_perf_analyzer.hh" -#include "timers/x86_perf_analyzer.hh" +// #include "timers/mixed_perf_analyzer.hh" +// #include "timers/x86_perf_analyzer.hh" using namespace std; @@ -50,7 +50,7 @@ BTL_DONT_INLINE void bench_static(void) static_size_generator<max_size,Perf_Analyzer,Action,Interface>::go(tab_sizes,tab_mflops); - dump_file_x_y(tab_sizes,tab_mflops,filename); + dump_xy_file(tab_sizes,tab_mflops,filename); } // default Perf Analyzer diff --git a/bench/btl/generic_bench/static/static_size_generator.hh b/bench/btl/generic_bench/static/static_size_generator.hh index 50f063bc0..dd02df3f1 100644 --- a/bench/btl/generic_bench/static/static_size_generator.hh +++ b/bench/btl/generic_bench/static/static_size_generator.hh @@ -27,12 +27,13 @@ using namespace std; template <int SIZE,template<class> class Perf_Analyzer, template<class> class Action, template<class,int> class Interface> struct static_size_generator{ - static void go(vector<double> & tab_sizes, vector<double> & tab_mflops) + static void go(vector<double> & tab_sizes, vector<double> & tab_mflops) { tab_sizes.push_back(SIZE); - + std::cout << tab_sizes.back() << " \t" << std::flush; Perf_Analyzer<Action<Interface<REAL_TYPE,SIZE> > > perf_action; tab_mflops.push_back(perf_action.eval_mflops(SIZE)); + std::cout << tab_mflops.back() << " MFlops" << std::endl; static_size_generator<SIZE-1,Perf_Analyzer,Action,Interface>::go(tab_sizes,tab_mflops); }; }; |