feevos commented on issue #2910: Helper function to get GPU device number? URL: https://github.com/apache/incubator-mxnet/issues/2910#issuecomment-356160135 This works for me getting the list of gpus available on a particular node (on hpc facility, slurm environment, python/2.7.13). ```Python import mx import os gpus = [int(x) for x in os.environ["CUDA_VISIBLE_DEVICES"].split(',')] ctx = [mx.gpu(i) for i in gpus] ```
---------------------------------------------------------------- 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
