From d97551bdb13ddd1b2154ff3033f6dbc0264a217b Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 10 Mar 2015 09:44:11 -0700 Subject: [PATCH] usnic: endpoint type hint moved to a sub-struct Update to match new libfabric API/structure change. --- opal/mca/btl/usnic/btl_usnic_component.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opal/mca/btl/usnic/btl_usnic_component.c b/opal/mca/btl/usnic/btl_usnic_component.c index 90de92c724..860866ee2e 100644 --- a/opal/mca/btl/usnic/btl_usnic_component.c +++ b/opal/mca/btl/usnic/btl_usnic_component.c @@ -605,6 +605,7 @@ static mca_btl_base_module_t** usnic_component_init(int* num_btl_modules, struct fi_info *info_list; struct fi_info *info; struct fi_info hints = {0}; + struct fi_ep_attr ep_attr = {0}; struct fi_fabric_attr fabric_attr = {0}; struct fid_fabric *fabric; struct fid_domain *domain; @@ -619,13 +620,14 @@ static mca_btl_base_module_t** usnic_component_init(int* num_btl_modules, return NULL; } - /* We only want providers named "usnic */ + /* We only want providers named "usnic that are of type EP_DGRAM */ fabric_attr.prov_name = "usnic"; + ep_attr.type = FI_EP_DGRAM; - hints.ep_type = FI_EP_DGRAM; hints.caps = FI_MSG; hints.mode = FI_LOCAL_MR | FI_MSG_PREFIX; hints.addr_format = FI_SOCKADDR; + hints.ep_attr = &ep_attr; hints.fabric_attr = &fabric_attr; ret = fi_getinfo(FI_VERSION(1, 0), NULL, 0, 0, &hints, &info_list);