Struct rust_gpu_tools::cuda::Device
source · pub struct Device { /* private fields */ }
Expand description
CUDA specific device.
Implementations§
source§impl Device
impl Device
sourcepub fn compute_units(&self) -> u32
pub fn compute_units(&self) -> u32
Returns the number of compute units of the GPU.
sourcepub fn compute_capability(&self) -> (u32, u32)
pub fn compute_capability(&self) -> (u32, u32)
Returns the major and minor version of compute capability of the GPU.
sourcepub fn pci_id(&self) -> PciId
pub fn pci_id(&self) -> PciId
Returns the PCI-ID of the GPU, see the PciId
type for more information.
sourcepub fn uuid(&self) -> Option<DeviceUuid>
pub fn uuid(&self) -> Option<DeviceUuid>
Returns the PCI-ID of the GPU if available, see the DeviceUuid
type for more
information.