|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef BENCH_STATIC_HH |
|
|
#define BENCH_STATIC_HH |
|
|
|
|
|
#include "btl.hh" |
|
|
#include "bench_parameter.hh" |
|
|
#include <iostream> |
|
|
#include "utilities.h" |
|
|
#include "xy_file.hh" |
|
|
#include "static/static_size_generator.hh" |
|
|
#include "timers/portable_perf_analyzer.hh" |
|
|
|
|
|
|
|
|
|
|
|
using namespace std; |
|
|
|
|
|
|
|
|
template <template<class> class Perf_Analyzer, template<class> class Action, template<class,int> class Interface> |
|
|
BTL_DONT_INLINE 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); |
|
|
|
|
|
const int max_size = TINY_MV_MAX_SIZE; |
|
|
|
|
|
std::vector<double> tab_mflops; |
|
|
std::vector<double> tab_sizes; |
|
|
|
|
|
static_size_generator<max_size,Perf_Analyzer,Action,Interface>::go(tab_sizes,tab_mflops); |
|
|
|
|
|
dump_xy_file(tab_sizes,tab_mflops,filename); |
|
|
} |
|
|
|
|
|
|
|
|
template <template<class> class Action, template<class,int> class Interface> |
|
|
BTL_DONT_INLINE void bench_static(void) |
|
|
{ |
|
|
bench_static<Portable_Perf_Analyzer,Action,Interface>(); |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|