Skip to content

Commit 742d452

Browse files
committed
opal_info: Add --show-failed CLI option
* `ompi_info --show-failed` will include the failed components along with information about why they failed. Signed-off-by: Joshua Hursey <[email protected]>
1 parent 3ad3d4e commit 742d452

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
@@ -162,6 +162,8 @@ int opal_info_init(int argc, char **argv,
162162
"Show only variables with at most this level (1-9)");
163163
opal_cmd_line_make_opt3(opal_info_cmd_line, 's', NULL, "selected-only", 0,
164164
"Show only variables from selected components");
165+
opal_cmd_line_make_opt3(opal_info_cmd_line, '\0', NULL, "show-failed", 0,
166+
"Show the components that failed to load along with the reason why they failed.");
165167

166168
/* set our threading level */
167169
opal_set_using_threads(false);
@@ -228,6 +230,10 @@ int opal_info_init(int argc, char **argv,
228230
opal_info_register_flags = MCA_BASE_REGISTER_DEFAULT;
229231
}
230232

233+
if( opal_cmd_line_is_taken(opal_info_cmd_line, "show-failed") ) {
234+
mca_base_component_track_load_errors = true;
235+
}
236+
231237
return OPAL_SUCCESS;
232238
}
233239

0 commit comments

Comments
 (0)