1 #ifndef DASH__UTIL__BENCHMARK_PARAMS_H__ 2 #define DASH__UTIL__BENCHMARK_PARAMS_H__ 4 #include <dash/util/Locality.h> 19 std::string description;
20 std::string value_type;
27 typedef std::vector< std::pair< std::string, std::string > >
31 env_flags_type env_mpi_config;
32 env_flags_type env_dash_config;
33 env_flags_type env_dart_config;
34 bool env_mpi_shared_win;
48 inline void set_output_width(
int width)
50 _header_width = width;
53 void parse_args(
int argc,
char * argv[]);
59 int output_width()
const {
67 void print_section_start(
const std::string & section_name)
const;
68 void print_section_end()
const;
71 std::stringstream & lines,
72 const std::string& prefix =
"")
const 74 std::ostringstream oss;
76 while(std::getline(lines, line)) {
77 oss <<
"-- " << prefix <<
" " << line <<
'\n';
79 std::cout << oss.str();
84 const std::string & name,
90 int value_w = _header_width - 6 - name.length();
91 std::ostringstream oss;
93 << std::left << name <<
" " 94 << std::right << std::setw(value_w) << value
96 std::cout << oss.str();
101 const std::string & flag,
102 const std::string & description,
110 int desc_w = _header_width - value_w - flag_w - 6;
111 std::ostringstream oss;
113 << std::left << std::setw(flag_w) << flag <<
" " 114 << std::right << std::setw(value_w) << value
115 << std::right << std::setw(desc_w) << description
117 std::cout << oss.str();
122 int _header_width = 82;
130 #endif // DASH__UTIL__BENCHMARK_PARAMS_H__
This class is a simple memory pool which holds allocates elements of size ValueType.
struct dash::unit_id< dash::global_unit, dart_global_unit_t > global_unit_t
Unit ID to use for global IDs.
static global_unit_t GlobalUnitID()
The invariant unit ID in dash::Team::All().