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

Fixed the bug in gatherv #347

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

WanXiaopei
Copy link

@WanXiaopei WanXiaopei commented Nov 25, 2022

  1. gatherv.h is not installed by the command of make install
  2. in gloo/gatherv.cc, GLOO_ENFORCE_GE is a wrong check, for example: there are two tasks, A task send 3 and 4 elements to task A and task B, respectively, while task B send 5 and 6 elements to task A and task B, respectively. In this way, the opts.elementsPerRank of task A will be 3 and 5, apparently, 4 (the number of elements send to task B) is not greater equal than 5 (the number of elements receive from task B).

一. gatherv.h在执行make install 时并没有拷贝到对应的目录,导致不能使用
二. 在gloo/gatherv.cc的107行和108行中,GLOO_ENFORCE_GE在这里的校验是错误的。比如,如果有两个任务,任务A分别向任务A和任务B发送3和4个数据,任务B分别向任务A和任务B发送5个和6个数据。那么对于任务A,则其opts.elementsPerRank将会是3和5,显然4(发送给任务B的数据量)并不是大于等于5(从任务B中收到的数据量)的。

@facebook-github-bot
Copy link

Hi @WanXiaopei!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@WanXiaopei
Copy link
Author

I do not know why cuda11.7-all-transports failed, is there any suggest ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants