Skip to content

Commit 0222f35

Browse files
committed
TMP: Reduce verbosity of XHC in case of trouble
Signed-off-by: George Katevenis <[email protected]>
1 parent c58e86f commit 0222f35

File tree

2 files changed

+19
-30
lines changed

2 files changed

+19
-30
lines changed

ompi/mca/coll/xhc/coll_xhc_module.c

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ mca_coll_base_module_t *mca_coll_xhc_module_comm_query(ompi_communicator_t *comm
106106
"coll:xhc:comm_query (%s/%s): All ranks not of the same arch; "
107107
"disabling myself", ompi_comm_print_cid(comm), comm->c_name);
108108

109-
opal_show_help("help-coll-xhc.txt", "xhc-diff-arch",
110-
true, OPAL_PROC_MY_HOSTNAME, opal_local_arch,
111-
opal_get_proc_hostname(&proc->super), proc->super.proc_arch);
112-
113109
return NULL;
114110
}
115111
}
@@ -127,14 +123,22 @@ mca_coll_base_module_t *mca_coll_xhc_module_comm_query(ompi_communicator_t *comm
127123
module->coll_barrier = mca_coll_xhc_barrier;
128124

129125
if(mca_smsc == NULL) {
130-
opal_show_help("help-coll-xhc.txt", "xhc-no-smsc", true);
126+
opal_output_verbose(MCA_BASE_VERBOSE_COMPONENT,
127+
ompi_coll_base_framework.framework_output,
128+
"coll:xhc: Warning: No opal/smsc support found; "
129+
"only barrier will be enabled");
130+
131131
return module;
132132
}
133133

134134
module->coll_bcast = mca_coll_xhc_bcast;
135135

136136
if(!mca_smsc_base_has_feature(MCA_SMSC_FEATURE_CAN_MAP)) {
137-
opal_show_help("help-coll-xhc.txt", "xhc-smsc-no-map", true);
137+
opal_output_verbose(MCA_BASE_VERBOSE_COMPONENT,
138+
ompi_coll_base_framework.framework_output,
139+
"coll:xhc: Warning: opal/smsc module is not CAN_MAP capable; "
140+
"(all)reduce will be disabled, bcast might see reduced performance");
141+
138142
return module;
139143
}
140144

@@ -363,7 +367,10 @@ static int xhc_module_create_hierarchy(mca_coll_xhc_module_t *module,
363367

364368
if(is_virtual) {
365369
if(nvirt_hiers == OMPI_XHC_LOC_EXT_BITS) {
366-
opal_show_help("help-coll-xhc.txt", "too-many-virt-hiers", true);
370+
opal_output_verbose(MCA_BASE_VERBOSE_COMPONENT,
371+
ompi_coll_base_framework.framework_output,
372+
"coll:xhc: Error: Too many virtual hierarchies");
373+
367374
RETURN_WITH_ERROR(return_code, OMPI_ERR_NOT_SUPPORTED, end);
368375
}
369376

@@ -624,7 +631,11 @@ static int xhc_module_sort_hierarchy(mca_coll_xhc_module_t *module,
624631
}
625632

626633
if(common_locality == 0) {
627-
opal_show_help("help-coll-xhc.txt", "xhc-no-common-locality", true);
634+
opal_output_verbose(MCA_BASE_VERBOSE_COMPONENT,
635+
ompi_coll_base_framework.framework_output,
636+
"coll:xhc: Error: There is no locality common "
637+
"to all ranks in the communicator");
638+
628639
RETURN_WITH_ERROR(return_code, OMPI_ERR_NOT_SUPPORTED, end);
629640
}
630641

ompi/mca/coll/xhc/help-coll-xhc.txt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,3 @@ The component won't load
2222
WARNING (coll/xhc)
2323
Component initialization failed with error code %d
2424
Errno: %d (%s)
25-
#
26-
[xhc-diff-arch]
27-
WARNING (coll/xhc)
28-
Heterogeneity is not currently supported
29-
Local host %s, arch 0x%08x
30-
Remote host %s, arch 0x%08x
31-
The component will not be enabled
32-
#
33-
[xhc-no-smsc]
34-
WARNING (coll/xhc)
35-
OPAL/smsc support is required, but no active module was found
36-
Only MPI_Barrier will be enabled
37-
#
38-
[xhc-smsc-no-map]
39-
WARNING (coll/xhc)
40-
An opal/smsc module capable of CAN_MAP is optimally required
41-
Some operations will be disabled, others might exhibit reduced performance
42-
#
43-
[xhc-no-common-locality]
44-
WARNING (coll/xhc)
45-
There is no locality common to all ranks in the communicator
46-
The component won't load

0 commit comments

Comments
 (0)