singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] chrishkchris commented on a change in pull request #728: Fix create_cuda_gpu
Date Wed, 10 Jun 2020 15:07:12 GMT

chrishkchris commented on a change in pull request #728:
URL: https://github.com/apache/singa/pull/728#discussion_r438196529



##########
File path: python/singa/device.py
##########
@@ -106,17 +106,21 @@ def create_cuda_gpus(num):
     return singa.Platform.CreateCudaGPUs(num)
 
 
-def create_cuda_gpu(set_default=False):
+Device.default_gpu_device = None

Review comment:
       Thanks! I have added the `global default_gpu_device` and it is working now. I have
combined three commits into one in this PR.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



Mime
View raw message