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 2019/04/05 11:14:53 UTC

[GitHub] [incubator-mxnet] yumna4 commented on issue #2910: Helper function to get GPU device number?

yumna4 commented on issue #2910: Helper function to get GPU device number?
URL: https://github.com/apache/incubator-mxnet/issues/2910#issuecomment-480238671
 
 
   > > When I try `os.environ["CUDA_VISIBLE_DEVICES"]` I get:
   > > ```
   > > KeyError: 'CUDA_VISIBLE_DEVICES'
   > > ```
   > 
   > Can anyone suggest, how was this issue resolved?
   
   you have to set it as follows
   import os
   os.environ['CUDA_VISIBLE_DEVICES']="0,3"  # specify which GPU(s) to be used

----------------------------------------------------------------
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


With regards,
Apache Git Services