Skip to content
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

prov/shm: add iface parameter to smr_select_proto #8849

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

wenduwan
Copy link
Contributor

Pass through hmem iface to proto selection logic.

@wenduwan wenduwan requested a review from aingerson April 24, 2023 23:09
{
if (op == ofi_op_read_req) {
if (use_ipc)
return smr_src_ipc;
if (cma_avail && FI_HMEM_SYSTEM)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess cma_avail && FI_HMEM_SYSTEM does not make much sense. Are we trying to test cma_avail && FI_HMEM_SYSTEM == iface instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah definitely a bug that this fixes. Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for confirming!

Copy link
Contributor

@aingerson aingerson left a comment

Choose a reason for hiding this comment

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

Code change looks good. Would add something to the commit message about fixing/reenabling CMA for reads. Can you backport this as well please? Thank you for catching!

{
if (op == ofi_op_read_req) {
if (use_ipc)
return smr_src_ipc;
if (cma_avail && FI_HMEM_SYSTEM)
Copy link
Contributor

Choose a reason for hiding this comment

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

Woah, that's a big miss. Can you add something in the commit message about how this fixes a bug where CMA would never be selected for a read?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Updated commit message. I will backport the change to 1.18.x branch.

Do we need it for 1.17.x as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

Well the only real use case of shm is efa so I'll let you decide how far back you want to go. The issue technically goes all the way back to 1.15.x

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool then we only need to backport to 1.18.x

Pass through hmem iface to proto selection logic.

This change re-enables CMA for read ops.

Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
@wenduwan
Copy link
Contributor Author

bot:aws:retest

@wzamazon wzamazon merged commit 6b4ddb2 into ofiwg:main Apr 25, 2023
@wzamazon
Copy link
Contributor

Please back port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants