From 78041bf4907e04acf56dca6489c7339e405fb9c8 Mon Sep 17 00:00:00 2001 From: NEWPLAN Date: Mon, 14 Jan 2019 21:05:46 +0800 Subject: [PATCH] fix compile error in debug mode 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