<p dir="ltr"><br>
16 июля 2015 г. 20:54 пользователь "Jose, Jithin" <<a href="mailto:jithin.jose@intel.com">jithin.jose@intel.com</a>> написал:<br>
><br>
> Hi Vasiliy,<br>
><br>
> The example looks fine, and the verbs provider should be able to give<br>
> valid output for fi_getinfo.<br>
> In fact, we tried this example with verbs provider and it gave valid<br>
> fi_info.<br>
> So, could the failure be because the node name is not resolvable or<br>
> something?<br>
> If the issue still exists, we can create an issue in github as Dave<br>
> mentioned.<br>
><br>
><br>
> One anomaly we noticed is that verbs provider currently returns with<br>
> FI_SOCKADDR_IN address format, even though the requested format is<br>
> different.<br>
> But, this should not result in returning -FI_EINVAL.<br>
><br>
> - Jithin<br>
><br>
><br></p>
<p dir="ltr">I think in you test you have working Ethernet or ipoib network. But I need pure rdma resolving.<br>
So as I see libfabric and rdma_cm writes something to /sys and fallback to DNS requests via Ethernet,and with absence Ethernet exit with error.<br></p>
<p dir="ltr">><br>
><br>
> -----Original Message-----<br>
> From: <<a href="mailto:ofiwg-bounces@lists.openfabrics.org">ofiwg-bounces@lists.openfabrics.org</a>> on behalf of Vasiliy Tolstov<br>
> <<a href="mailto:v.tolstov@selfip.ru">v.tolstov@selfip.ru</a>><br>
> Date: Thursday, July 16, 2015 at 2:14 AM<br>
> To: ofiwg <<a href="mailto:ofiwg@lists.openfabrics.org">ofiwg@lists.openfabrics.org</a>><br>
> Subject: [ofiwg] libfabric fi_getinfo question<br>
><br>
> >Hello, i'm try to understand usage of libfabric and stuc at simple<br>
> >example, it returns<br>
> >fi_getinfo(): info.c:34, ret=-22 (Invalid argument)<br>
> ><br>
> >i'm try to resolve local node address with hostname =<br>
> ><a href="http://cn33.z1.mn2.simplecloud.ru">cn33.z1.mn2.simplecloud.ru</a> and node_desc = <a href="http://cn33.z1.mn2.simplecloud.ru">cn33.z1.mn2.simplecloud.ru</a><br>
> ><br>
> >P.S does it possible to resolve node address via libfabric that<br>
> >entered in node_desc<br>
> >(/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/infiniband/mlx4_0/node_<br>
> >desc)<br>
> ><br>
> >int main(int argc, char **argv) {<br>
> > int ret;<br>
> > hints = fi_allocinfo();<br>
> > if (hints == NULL) {<br>
> > fprintf(stderr, "%s\n", "failed to alloc info");<br>
> > return -1;<br>
> > }<br>
> > hints->addr_format = FI_SOCKADDR_IB;<br>
> > ret = fi_getinfo(FI_VERSION(1, 0),<br>
> >"<a href="http://cn33.z1.mn2.simplecloud.ru">cn33.z1.mn2.simplecloud.ru</a>", NULL, 0, hints, &fi);<br>
> > if (ret < 0) {<br>
> > FT_PRINTERR("fi_getinfo", ret);<br>
> > return ret;<br>
> > }<br>
> > if (fi == NULL) {<br>
> > fprintf(stderr, "%s\n", "failed to get info");<br>
> > return -1;<br>
> > }<br>
> > for (rp = fi; rp != NULL; rp = rp->next) {<br>
> > if (rp->addr_format == FI_SOCKADDR_IB) {<br>
> > addrlen = fi->dest_addrlen;<br>
> > remote_addr = malloc(addrlen);<br>
> > memcpy(remote_addr, fi->dest_addr, addrlen);<br>
> > }<br>
> > }<br>
> > fi_freeinfo(fi);<br>
> > return 0;<br>
> >}<br>
> ><br>
> ><br>
> >--<br>
> >Vasiliy Tolstov,<br>
> >e-mail: <a href="mailto:v.tolstov@selfip.ru">v.tolstov@selfip.ru</a><br>
> >_______________________________________________<br>
> >ofiwg mailing list<br>
> ><a href="mailto:ofiwg@lists.openfabrics.org">ofiwg@lists.openfabrics.org</a><br>
> ><a href="http://lists.openfabrics.org/mailman/listinfo/ofiwg">http://lists.openfabrics.org/mailman/listinfo/ofiwg</a><br>
><br>
</p>