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

Do not block on barrier in remote mode #3694

Merged
merged 1 commit into from
Aug 2, 2022
Merged

Conversation

sadhansood
Copy link
Contributor

@sadhansood sadhansood commented Aug 1, 2022

Without this, we block the barrier in the main thread which stops execution. Also, fix the computation of request delay.

@sadhansood sadhansood requested review from velvia and bmwill August 1, 2022 23:45
@sadhansood sadhansood marked this pull request as ready for review August 1, 2022 23:45
@bmwill
Copy link
Contributor

bmwill commented Aug 2, 2022

Why wait on the barrier at all then?

@sadhansood
Copy link
Contributor Author

sadhansood commented Aug 2, 2022

Why wait on the barrier at all then?

Because to unblock the wait() on the barrier outside the if condition and the barrier is initialized with 2. This seemed clean enough to me. The second wait is in line 509

Copy link
Contributor

@velvia velvia left a comment

Choose a reason for hiding this comment

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

LGTM thank you!

@sadhansood sadhansood merged commit 585fb7a into main Aug 2, 2022
@sadhansood sadhansood deleted the sadhan/barrier_fix branch August 2, 2022 00:42
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.

3 participants