});
std::ostringstream oss;
std::string title = "Available collective algorithms (select them with \"smpi/collective_name:algo_name\"):";
- oss << title << '\n' << std::setfill('=') << std::setw(title.length() + 1);
+ oss << title << '\n' << std::setfill('=') << std::setw(title.length() + 1) << '\n';
for (auto const& [coll, algos] : smpi_coll_descriptions) {
std::string line = "Collective: \"" + coll + "\"";
- oss << '\n' << line << '\n' << std::setfill('-') << std::setw(line.length() + 1) << '\n';
+ oss << line << '\n' << std::setfill('-') << std::setw(line.length() + 1) << '\n';
oss << std::setfill(' ') << std::left;
for (auto const& [name, descr, _] : algos)
oss << " " << std::setw(max_name_len) << name << " " << descr << "\n";
- oss << std::right;
+ oss << std::right << '\n';
}
+ oss << "Please see https://simgrid.org/doc/latest/app_smpi.html#available-algorithms for more information.\n";
return oss.str();
}
-version # Displays the SimGrid version (human readable)
-git-version # Displays the git hash of SimGrid
+ -help # Displays this information
+ -help-coll # Displays all available collective algorithms
or (deprecated usage):
$0 [-keep-temps] [-np <numprocs>] [-bandwidth <bytes/sec>] [-latency <secs>] program [program-options]
usage
exit 0
;;
- "--help-coll")
+ "-help-coll" | "--help-coll")
${WRAPPER} "@SMPIMAIN@" --help-coll
exit 0
;;