[libfabric-users] Obtaining an External Address

Hefty, Sean sean.hefty at intel.com
Mon Oct 10 12:44:53 PDT 2016


> I would like to open an unconnected endpoint and determine the address
> it can be reached at. The caveat is that I need to do this in a way
> that is agnostic of the provider selected.

After allocating the endpoint, enable it, then retrieve the address:

fi_endpoint(..., *ep, ...);
fi_enable(ep);
fi_getname(ep, &addr, *addrlen);

A usable source address is not guaranteed to be available until after the EP has been enabled.



More information about the Libfabric-users mailing list