| |
- __builtin__.object
-
- GPUDevice
class GPUDevice(__builtin__.object) |
|
Provides information about an individual GPU device.
On platforms which support them, the vendor_id and device_id are
PCI IDs. On other platforms, the vendor_string and device_string
are platform-dependent strings. |
|
Methods defined here:
- __init__(self, vendor_id, device_id, vendor_string, device_string)
- __str__(self)
Class methods defined here:
- FromDict(cls, attrs) from __builtin__.type
- Constructs a GPUDevice from a dictionary. Requires the
following attributes to be present in the dictionary:
vendor_id
device_id
vendor_string
device_string
Raises an exception if any attributes are missing.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- device_id
- The GPU device's PCI ID as a number, or 0 if not available.
Most desktop machines supply this information rather than the
vendor and device strings.
- device_string
- The GPU device's name as a string, or the empty string if not
available.
Most mobile devices supply this information rather than the PCI
IDs.
- vendor_id
- The GPU vendor's PCI ID as a number, or 0 if not available.
Most desktop machines supply this information rather than the
vendor and device strings.
- vendor_string
- The GPU vendor's name as a string, or the empty string if not
available.
Most mobile devices supply this information rather than the PCI
IDs.
| |