[spec][usm-p2p] p2p info query return int instead of uint32_t, fix l0 impl #2246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The level zero p2p impl currently returns boolean values instead of an integer. This PR fixes that to match the spec requirement.
I've also changed the spec requirement slightly so that all
ur_exp_peer_info_t
types areint
instead ofuint32_t
The switch to
int
practically makes no real difference right now but I think is an improvement.I think that I made a mistake choosing
uint32_t
originally since in theory the cuda/hip backends could make use of negative values in the future since they useint
type; such that by restricting to an unsigned type we are technically restricting these backends.Also by not specifying a 32 bit type we allow for any unexpected issues where a runtime platform could theoretically use e.g. 16 bit integers as a query return value.
Fixes #2079