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

Improve benchmark runtime with data check #39

Closed

Conversation

Sergei-Lebedev
Copy link
Contributor

Add fast path to data check to see if tensors are different first.
Allgather 8 Ranks with data check without optimization
CPU --b 1K --e 1M: 52.046s
GPU --b 1K --e 2M: 8m 29.476s

Allgather 8 Ranks with data check with optimization
CPU --b 1K --e 1M: 7.730s
GPU --b 1K --e 2M: 8.375s

Also fixes "IndexError: list index out of range" for collectives with list of tensors when tensors are not equal

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 6, 2021
@facebook-github-bot
Copy link
Contributor

@kingchc has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@kingchc kingchc left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for improving it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants