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

Various changes to improve latency of background thread loop. #1880

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

romerojosh
Copy link
Collaborator

This PR contains mostly small changes to improve the latency of the background thread loop. Mostly comprised of using references and std::move when possible to avoid extraneous copies. Also introduces TensorQueue::PushMessagesToQueue method to avoid repeatedly taking a lock on a mutex when replacing uncached messages to the state queue in the previous logic when each message was replaced individually with TensorQueue::PushMessageToQueue. Lastly, changes default CPU compilation flags to -O3 from -O2.

Signed-off-by: Josh Romero <joshr@nvidia.com>
Copy link
Collaborator

@tgaddair tgaddair left a comment

Choose a reason for hiding this comment

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

LGTM! Awesome work!

@tgaddair tgaddair merged commit cbaa6a8 into horovod:master Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants