pub struct DeviceAttributes {
pub multiprocessor_count: u32,
pub shared_copy_engine_count: u32,
pub shared_decoder_count: u32,
pub shared_encoder_count: u32,
pub shared_jpeg_count: u32,
pub shared_ofa_count: u32,
pub gpu_instance_slice_count: u32,
pub compute_instance_slice_count: u32,
pub memory_size_mb: u64,
}Expand description
Hardware level attributes from a GPU device
Fields§
§multiprocessor_count: u32Streaming MultiProcessor Count
Shared Copy Engine Count
Shared Decoder Count
Shared Encoder Count
Shared JPEG Count
Shared OFA Count
gpu_instance_slice_count: u32GPU instance slice Count
compute_instance_slice_count: u32Compute Instance slice count
memory_size_mb: u64Device memory size in MB
Trait Implementations§
Source§impl Clone for DeviceAttributes
impl Clone for DeviceAttributes
Source§fn clone(&self) -> DeviceAttributes
fn clone(&self) -> DeviceAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceAttributes
impl Debug for DeviceAttributes
Source§impl From<nvmlDeviceAttributes_st> for DeviceAttributes
impl From<nvmlDeviceAttributes_st> for DeviceAttributes
Source§fn from(struct_: nvmlDeviceAttributes_t) -> Self
fn from(struct_: nvmlDeviceAttributes_t) -> Self
Converts to this type from the input type.
Source§impl Hash for DeviceAttributes
impl Hash for DeviceAttributes
Source§impl PartialEq for DeviceAttributes
impl PartialEq for DeviceAttributes
impl Eq for DeviceAttributes
impl StructuralPartialEq for DeviceAttributes
Auto Trait Implementations§
impl Freeze for DeviceAttributes
impl RefUnwindSafe for DeviceAttributes
impl Send for DeviceAttributes
impl Sync for DeviceAttributes
impl Unpin for DeviceAttributes
impl UnwindSafe for DeviceAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more