Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
make install
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, theopts.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中收到的数据量)的。