From dbbd252b14a3cd45524d3b1218297e73b266b6ba Mon Sep 17 00:00:00 2001 From: NEWPLAN Date: Tue, 29 Jan 2019 05:42:40 +0800 Subject: [PATCH] fix compile error in debug mode (#13873) 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. --- src/kvstore/kvstore_nccl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kvstore/kvstore_nccl.h b/src/kvstore/kvstore_nccl.h index d0f397cc61b7..a4ba533917b8 100644 --- a/src/kvstore/kvstore_nccl.h +++ b/src/kvstore/kvstore_nccl.h @@ -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