apeforest commented on a change in pull request #12031: Fix CPUPinned
unexpected behaviour
URL: https://github.com/apache/incubator-mxnet/pull/12031#discussion_r226127138
##########
File path: src/kvstore/kvstore_nccl.h
##########
@@ -428,6 +428,7 @@ class KVStoreNCCL : public KVStoreLocal {
mutate_vars.push_back(ptr(dst[i])->var());
}
Engine::Get()->PushSync([this](RunContext rctx) {
+ mxnet::common::cuda::SetDevice set_device;
for (auto cur : nccl_data_) {
CUDA_CALL(cudaSetDevice(cur.second.dev_id));
Review comment:
same here
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services