Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix compile error in debug mode (#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 eric-haibin-lin committed Jan 28, 2019
1 parent c4080de commit dbbd252
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 dbbd252

Please sign in to comment.