Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 7635d2b

Browse files
committed
usnic: add high-verbose reachability messages
(cherry picked from commit open-mpi/ompi@87dbe6c)
1 parent bafb873 commit 7635d2b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

opal/mca/btl/usnic/btl_usnic_module.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,18 @@ static int add_procs_block_create_endpoints(opal_btl_usnic_module_t *module,
9898

9999
/* Do not create loopback usnic connections */
100100
if (opal_proc == my_proc) {
101+
opal_output_verbose(75, USNIC_OUT,
102+
"btl:usnic:add_procs:%s: not connecting to self",
103+
module->fabric_info->fabric_attr->name);
101104
continue;
102105
}
103106

104107
/* usNIC does not support loopback to the same machine */
105108
if (OPAL_PROC_ON_LOCAL_NODE(opal_proc->proc_flags)) {
109+
opal_output_verbose(75, USNIC_OUT,
110+
"btl:usnic:add_procs:%s: not connecting to %s on same server",
111+
module->fabric_info->fabric_attr->name,
112+
usnic_compat_proc_name_print(&opal_proc->proc_name));
106113
continue;
107114
}
108115

@@ -115,6 +122,11 @@ static int add_procs_block_create_endpoints(opal_btl_usnic_module_t *module,
115122
if (OPAL_ERR_UNREACH == rc) {
116123
/* If the peer doesn't have usnic modex info, then we just
117124
skip it */
125+
opal_output_verbose(75, USNIC_OUT,
126+
"btl:usnic:add_procs:%s: peer %s on %s does not have usnic modex info; skipping",
127+
module->fabric_info->fabric_attr->name,
128+
usnic_compat_proc_name_print(&opal_proc->proc_name),
129+
opal_get_proc_hostname(opal_proc));
118130
continue;
119131
} else if (OPAL_SUCCESS != rc) {
120132
return OPAL_ERR_OUT_OF_RESOURCE;

0 commit comments

Comments
 (0)