Skip to content

Commit

Permalink
fix compile error in debug mode (apache#13873)
Browse files Browse the repository at this point in the history
the latest BufferEntry do not contain ctx function and results in compile errors.
inside of BufferEntry is an object of NDArray, that is the expected data.
  • Loading branch information
NEWPLAN authored and haohuw committed Jun 23, 2019
1 parent 13158df commit 9ed5759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kvstore/kvstore_nccl.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class KVStoreNCCL : public KVStoreLocal {
} else {
auto& buf = merge_buf_[key];
int root = src.ctx().dev_id;
assert(root == buf.ctx().dev_id);
assert(root == buf.merged.ctx().dev_id);
root_id = FindRootId(dst, root);

// Check whether we got the same set of devices
Expand Down

0 comments on commit 9ed5759

Please sign in to comment.