[libfabric-users] netdir / fi_getinfo not returning FI_CONTEXT
Hefty, Sean
sean.hefty at intel.com
Tue Nov 2 08:40:00 PDT 2021
This looks like a bug. Could you open an issue on github with this report?
https://github.com/ofiwg/libfabric/issues
Quickly looking at the code, I can see where the provider is modifying the passed in context. And I also don’t see that FI_CONTEXT is being added as a mode bit.
- Sean
I’ve hit another stumbling block related to the netdir provider. If I understand the api correctly, when providing hints for mode of “FI_CONTEXT|FI_CONTEXT2”, if the corresponding bits are cleared in the returned fi_info struct, then there is no requirement for providing a fi_context/fi_context2 struct ahead of any context used by the application.
What I am seeing when invoking fi_sendv / fi_recvv is that it is, in fact, using context for internal purposes. The context the application provides is overwritten during the function execution and differs after the call returns.
If I provide an fi_context2 struct ahead of the application context, then things appear to behave as expected.
So, I’m assuming that I’ve stumbled upon a bug here.
Regards,
Derek
Derek Shinaberry
Senior Software Engineer, Platform Software
Canon Medical Research USA, Inc.
706 N. Deerpath Drive, Vernon Hills, IL 60061, USA
www.research.us.medical.canon<http://www.research.us.medical.canon/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/libfabric-users/attachments/20211102/dd12e3d6/attachment-0001.htm>
More information about the Libfabric-users
mailing list