Skip to content

mtl/ofi: Fix EP name length bug for fi_av_insert() #11651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2023

Conversation

lrbison
Copy link
Contributor

@lrbison lrbison commented May 5, 2023

This change removes the (invalid) assumption that all ep_names will be the same length. Rather than pre-allocating a list of all names, and then inserting them all later, we instead just insert each name as we retrieve it from modex.

This change removes the (invalid) assumption that all ep_names
will be the same length.  Rather than pre-allocating a list of
all names, and then inserting them all later, we instead just
insert each name as we retrieve it from modex.

Signed-off-by: Luke Robison <lrbison@amazon.com>
@lrbison
Copy link
Contributor Author

lrbison commented May 9, 2023

Rebased to fix RTD

@lrbison lrbison requested review from hppritcha and bwbarrett May 10, 2023 14:10
Copy link
Member

@hppritcha hppritcha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In approving this change, i'm assuming for most providers doing individual fi_av_insert 's for each ep_name isn't much more expensive than a single "vector" of ep_names calls.

@bwbarrett bwbarrett merged commit 37eb14d into open-mpi:main May 10, 2023
@lrbison
Copy link
Contributor Author

lrbison commented May 11, 2023

Backport to 5.0.x: #11670
Backport to 4.1.x: #11671

@lrbison lrbison deleted the ep-name-length branch May 11, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants