You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/10/17 23:31:30 UTC

[GitHub] apeforest commented on a change in pull request #12031: Fix CPUPinned unexpected behaviour

apeforest commented on a change in pull request #12031: Fix CPUPinned unexpected behaviour
URL: https://github.com/apache/incubator-mxnet/pull/12031#discussion_r226125021
 
 

 ##########
 File path: src/kvstore/comm_tree.h
 ##########
 @@ -339,6 +339,7 @@ class CommDeviceTree : public CommDevice {
     int n = static_cast<int>(gpus.size());
     int enabled = 0;
     std::vector<int> p2p(n*n);
+    mxnet::common::cuda::SetDevice set_device;
     for (int i = 0; i < n; ++i) {
       cudaSetDevice(gpus[i]);
 
 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:
users@infra.apache.org


With regards,
Apache Git Services