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

where the code related to communication and calculation of overlap of one algorithm? #662

Closed
chst1994 opened this issue Jan 4, 2023 · 1 comment

Comments

@chst1994
Copy link

chst1994 commented Jan 4, 2023

I didn't find code related to communication and calculation of overlap,can you show me an example? Thanks!

@wangraying
Copy link
Member

The overlapping mechanism is implemented in backward hook. During the backward process, when tensors in a bucket are ready, a background thread (implemented in rust) will start communication (performing comm op on the bucket), while the main thread can continue the backward process. In this way, successive buckets' communication and computation can overlap together.

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

No branches or pull requests

2 participants