feevos commented on issue #2910: Helper function to get GPU device number? URL: https://github.com/apache/incubator-mxnet/issues/2910#issuecomment-356160135 ```Python import os print (os.environment["CUDA_VISIBLE_DEVICES"]) ``` output varies depending on available gpus (usually a list of strings, like ```['0','1','2','3']``` works for me getting the list of gpus available on a particular node (on hpc facility, slurm environment, python/2.7.13).
---------------------------------------------------------------- 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
