Fix minor bug such that "ompi_info -all" shows all MCA params
This commit was SVN r1970.
Этот коммит содержится в:
родитель
266f2f15f4
Коммит
11b5eeddce
@ -159,7 +159,7 @@ int main(int argc, char *argv[])
|
||||
acted = true;
|
||||
}
|
||||
if (want_all || ompi_cmd_line_is_taken(cmd_line, "param")) {
|
||||
do_params();
|
||||
do_params(want_all);
|
||||
acted = true;
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ namespace ompi_info {
|
||||
extern std::string path_pkglibdir;
|
||||
extern std::string path_sysconfdir;
|
||||
|
||||
void do_params();
|
||||
void do_params(bool want_all);
|
||||
void show_mca_params(const std::string& type, const std::string& component,
|
||||
const std::string& param);
|
||||
|
||||
|
@ -44,11 +44,11 @@ string ompi_info::path_sysconfdir = "sysconfdir";
|
||||
extern ompi_value_array_t mca_base_params;
|
||||
|
||||
|
||||
void ompi_info::do_params()
|
||||
void ompi_info::do_params(bool want_all)
|
||||
{
|
||||
unsigned int count;
|
||||
string type, component;
|
||||
bool found, want_all;
|
||||
bool found;
|
||||
ompi_info::type_vector_t::size_type i;
|
||||
|
||||
ompi_info::open_components();
|
||||
@ -56,7 +56,6 @@ void ompi_info::do_params()
|
||||
// See if the special param "all" was givin to --param; that
|
||||
// superceeds any individual type
|
||||
|
||||
want_all = false;
|
||||
count = ompi_cmd_line_get_ninsts(cmd_line, "param");
|
||||
for (i = 0; i < count; ++i) {
|
||||
type = ompi_cmd_line_get_param(cmd_line, "param", i, 0);
|
||||
@ -400,7 +399,7 @@ void ompi_info::do_config(bool want_all)
|
||||
WRAPPER_EXTRA_LIBS);
|
||||
}
|
||||
|
||||
out("Debug support", "option:debug", debug);
|
||||
out("Intenral debug support", "option:debug", debug);
|
||||
out("MPI parameter check", "option:mpi-param-check", paramcheck);
|
||||
out("Memory profiling support", "option:mem-profile", memprofile);
|
||||
out("Memory debugging support", "option:mem-debug", memdebug);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user