ofiwg / libfabric

Open Fabric Interfaces

Home Page:http://libfabric.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prov/verbs: Problem with fi_join_collective()

tgiannoukos opened this issue · comments

Describe the bug
When compiling code which includes an fi_join_collective() call with the FI_ADDR_UNAVAIL flag, as noted in the documentation, I get an error message that the FI_ADDR_UNAVAIL flag was not declared in this scope. As I believe that I have included all the required header files, and I can find no reference to this flag outside the aforementioned man page, I have reason to believe that there might be a mistake in the documentation, and that it should be FI_ADDR_NOTAVAIL instead of FI_ADDR_UNAVAIL. Could you let me know if this is the case?

Thanks in advance,
Akis

Output

error: ‘FI_ADDR_UNAVAIL’ was not declared in this scope
note: suggested alternative: ‘FI_ADDR_NOTAVAIL’

The documentation is wrong. The correct name is FI_ADDR_UNSPEC. FI_ADDR_NOTAVAIL could be used as it's the same constant value, but UNSPEC is intended. These values are not flags however, but addresses.

Thank you!