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

HG Core: add copy_on_multi_recv and multi_recv_copy_threshold #746

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

soumagne
Copy link
Member

Use these two new parameters to fallback to memcpy to prevent starvation of multi-recv buffers and potential deadlock situations.

Comment on lines 118 to 120
* Default value is: false */
bool copy_on_multi_recv;

Copy link
Contributor

@frostedcmos frostedcmos Jul 16, 2024

Choose a reason for hiding this comment

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

Looks like the intention for this experimental patch was to always copy, but since this is false by default it will not?

Copy link
Member Author

Choose a reason for hiding this comment

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

What made you think that? No the intent was to not copy by default. It's not really experimental I just made a patch that I can merge eventually. I also updated one of my cart PRs to set this to true to always copy as an experiment.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok, the ticket PR for Saurabh to try only mentioned this PR and not the cart one, so i thought this was supposed to enable it by default. Makes sense now:)

@soumagne soumagne force-pushed the mrecv_copy branch 3 times, most recently from 46dcfd3 to 9479bc0 Compare July 29, 2024 21:09
Use this new parameter to fallback to memcpy to prevent
starvation of multi-recv buffers and potential deadlock situations.

Fix auto sm cap disabled with multi-recv
@soumagne soumagne merged commit 11462ca into mercury-hpc:master Jul 29, 2024
19 of 20 checks passed
@soumagne soumagne deleted the mrecv_copy branch July 29, 2024 21:16
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants