Discussion:
[PyCUDA] Pycuda Device Detection
AlexG
2016-03-21 12:22:44 UTC
Permalink
Hello,

I have a question on the cuda capable device detection using pycuda.
Does the driver.Device.count() function detect each gpu on dual gpu cards
such as
the nvidia K2 or K80 cards as separate?, that is if I have one K2 card
installed
does the count() function return 2?
Also is there a device attribute that matches it with the other gpu(s) on
the same card?

Sorry if this is a trivial question, but I wasn't able to find a definitive
answer online, nor do
I have a dual gpu card available at the moment.

Best regards,
Alex



--
View this message in context: http://pycuda.2962900.n2.nabble.com/Pycuda-Device-Detection-tp7575696.html
Sent from the PyCuda mailing list archive at Nabble.com.
Andreas Kloeckner
2016-03-21 14:50:28 UTC
Permalink
Post by AlexG
Hello,
I have a question on the cuda capable device detection using pycuda.
Does the driver.Device.count() function detect each gpu on dual gpu cards
such as
the nvidia K2 or K80 cards as separate?, that is if I have one K2 card
installed
does the count() function return 2?
Yes,
Post by AlexG
Also is there a device attribute that matches it with the other gpu(s) on
the same card?
You could probably reverse engineer that from the Bus ID. Although the
enumeration logic does not have documented behavior in this regard, I'd
expect them to enumerate at consecutive IDs.

Andreas

Loading...