You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be really handy if there was a way to list all available devices on a machine. Not sure if this is possible or already exists (and I overlooked the docs 🤦♂️).
Would note that pygpu.gpuarray.count_platforms("cuda") returned 1 on a platform with no CUDA compatible GPUs. Can open a new issue to investigate further if there is interest.
There is an issue with pygpu.gpuarray.count_platforms("cuda") returning 1 on platform without CUDA compatible GPUs : when the program tries to explore the devices on this inexistant platform, python tries to load libcuda.so dynamically, doesn't find if (of course) and raises an exception. A correct piece of software should not raise exceptions. In this case, calling count_devices('cuda',0) is a legitimate action when count_platforms('cuda') returns greater than zero.
Activity
abergeron commentedon Jun 26, 2017
You can list the number of platforms with
and the devices with
Is this what you had in mind?
jakirkham commentedon Jun 26, 2017
Not exactly, but that does work. Thanks.
Would note that
pygpu.gpuarray.count_platforms("cuda")returned1on a platform with no CUDA compatible GPUs. Can open a new issue to investigate further if there is interest.abergeron commentedon Jun 26, 2017
The platform is there, but there should be no devices. It's a side effect of dynamically loading the libraries when required.
However, I don't claim that these functions are 100% bug-free, so if you find issues, please report them.
lepeuvedic commentedon Sep 7, 2017
There is an issue with
pygpu.gpuarray.count_platforms("cuda")returning1on platform without CUDA compatible GPUs : when the program tries to explore the devices on this inexistant platform, python tries to loadlibcuda.sodynamically, doesn't find if (of course) and raises an exception. A correct piece of software should not raise exceptions. In this case, callingcount_devices('cuda',0)is a legitimate action whencount_platforms('cuda')returns greater than zero.abergeron commentedon Sep 11, 2017
That is something we could fix.