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

Fix array length bug of PureNcclCommunicator #127

Merged
merged 6 commits into from
Dec 11, 2017
Merged

Fix array length bug of PureNcclCommunicator #127

merged 6 commits into from
Dec 11, 2017

Conversation

iwiwi
Copy link
Contributor

@iwiwi iwiwi commented Oct 13, 2017

The original code has a minor bug regarding to array lengths of GPU buffers in PureNcclCommunicator.

  • n_elems_total is less than or equal to n_elems_per_node
  • ret has length n_elems_total
  • gpu_buffer_b tries to copy nbytes_buffer (= 4 * n_bytes_per_node ) from ret, which may be longer than the length of ret and causes error.

@shu65 shu65 self-requested a review November 17, 2017 11:56
@shu65 shu65 merged commit 50d8523 into master Dec 11, 2017
@shu65 shu65 deleted the prue-nccl-fix branch December 11, 2017 07:04
@iwiwi iwiwi added this to the v1.1.0 milestone Dec 13, 2017
@kuenishi kuenishi added the bug label Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants