20 #ifndef _STATIC_SIZE_GENERATOR_HH
21 #define _STATIC_SIZE_GENERATOR_HH
28 template <
int SIZE,
template<
class>
class Perf_Analyzer,
template<
class>
class Action,
template<
class,
int>
class Interface>
30 static void go(vector<double> & tab_sizes, vector<double> & tab_mflops)
32 tab_sizes.push_back(
SIZE);
33 std::cout << tab_sizes.back() <<
" \t" << std::flush;
34 Perf_Analyzer<Action<Interface<REAL_TYPE,SIZE> > > perf_action;
35 tab_mflops.push_back(perf_action.eval_mflops(
SIZE));
36 std::cout << tab_mflops.back() <<
" MFlops" << std::endl;
43 template <
template<
class>
class Perf_Analyzer,
template<
class>
class Action,
template<
class,
int>
class Interface>
45 static void go(vector<double> & tab_sizes, vector<double> & tab_mflops)
47 tab_sizes.push_back(1);
48 Perf_Analyzer<Action<Interface<REAL_TYPE,1> > > perf_action;
49 tab_mflops.push_back(perf_action.eval_mflops(1));