Skip to content

Commit 20e448c

Browse files
committed
opal_info_support: output component versions
When invoking, for example, `ompi_info` with: -a --params foo all --params foo bar it's useful to have the appropriate components and their versions be displayed, regardless of whether they have registered any parameters. Signed-off-by: Karol Mroz <[email protected]>
1 parent a468c3b commit 20e448c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

opal/runtime/opal_info_support.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ void opal_info_do_params(bool want_all_in, bool want_internal,
483483
/* Show the params */
484484

485485
if (want_all) {
486+
opal_info_show_component_version(mca_types, component_map, opal_info_type_all,
487+
opal_info_component_all, opal_info_ver_full,
488+
opal_info_ver_all);
486489
for (i = 0; i < mca_types->size; ++i) {
487490
if (NULL == (type = (char *)opal_pointer_array_get_item(mca_types, i))) {
488491
continue;
@@ -511,6 +514,9 @@ void opal_info_do_params(bool want_all_in, bool want_internal,
511514
exit(1);
512515
}
513516

517+
opal_info_show_component_version(mca_types, component_map, type,
518+
component, opal_info_ver_full,
519+
opal_info_ver_all);
514520
opal_info_show_mca_params(type, component, max_level, want_internal);
515521
}
516522
}

0 commit comments

Comments
 (0)