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

What does the nki.language.all_reduce function do? #1110

Open
shimbay opened this issue Feb 10, 2025 · 2 comments
Open

What does the nki.language.all_reduce function do? #1110

shimbay opened this issue Feb 10, 2025 · 2 comments
Labels
question Further information is requested

Comments

@shimbay
Copy link

shimbay commented Feb 10, 2025

There is a function all_reduce in nki document, but i donot understand the usage of this function.

Is it used for chip2chip communication or core2core communication?

@VishaalChandrasekar0203
Copy link

VishaalChandrasekar0203 commented Feb 11, 2025

The 'nki.language.all_reduce' function enables communication between cores within a single Neuron chip. It performs a reduction operation (like, sum, max) across these cores, then shares the result with all participants ( Not chip2chip).
Think of it as internal coordination for parallel processing on one chip.

Hope this helps @shimbay @aws-satyajith

@shimbay
Copy link
Author

shimbay commented Feb 13, 2025

The 'nki.language.all_reduce' function enables communication between cores within a single Neuron chip. It performs a reduction operation (like, sum, max) across these cores, then shares the result with all participants ( Not chip2chip). Think of it as internal coordination for parallel processing on one chip.

Hope this helps @shimbay @aws-satyajith

Thanks for your reply!!!

Now i understand this api is for core2core communication, but there is another problem, I did not see any hardware link between cores in the architecture description. So is this api implemented by swapping data via HBM? or if there is a hardware link, what is the bandwidth?

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants