Struct nvml_wrapper::struct_wrappers::device::ProcessInfo
source · [−]pub struct ProcessInfo {
pub pid: u32,
pub used_gpu_memory: UsedGpuMemory,
pub gpu_instance_id: Option<u32>,
pub compute_instance_id: Option<u32>,
}Expand description
Information about compute processes running on the GPU.
Fields
pid: u32used_gpu_memory: UsedGpuMemoryAmount of used GPU memory in bytes.
gpu_instance_id: Option<u32>The ID of the GPU instance this process is running on, if applicable.
MIG (Multi-Instance GPU) must be enabled on the device for this field to be set.
compute_instance_id: Option<u32>The ID of the compute instance this process is running on, if applicable.
MIG (Multi-Instance GPU) must be enabled on the device for this field to be set.
Trait Implementations
sourceimpl Clone for ProcessInfo
impl Clone for ProcessInfo
sourcefn clone(&self) -> ProcessInfo
fn clone(&self) -> ProcessInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ProcessInfo
impl Debug for ProcessInfo
sourceimpl From<nvmlProcessInfo_st> for ProcessInfo
impl From<nvmlProcessInfo_st> for ProcessInfo
sourcefn from(struct_: nvmlProcessInfo_t) -> Self
fn from(struct_: nvmlProcessInfo_t) -> Self
Converts to this type from the input type.
sourceimpl Hash for ProcessInfo
impl Hash for ProcessInfo
sourceimpl PartialEq<ProcessInfo> for ProcessInfo
impl PartialEq<ProcessInfo> for ProcessInfo
sourcefn eq(&self, other: &ProcessInfo) -> bool
fn eq(&self, other: &ProcessInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ProcessInfo) -> bool
fn ne(&self, other: &ProcessInfo) -> bool
This method tests for !=.
impl Eq for ProcessInfo
impl StructuralEq for ProcessInfo
impl StructuralPartialEq for ProcessInfo
Auto Trait Implementations
impl RefUnwindSafe for ProcessInfo
impl Send for ProcessInfo
impl Sync for ProcessInfo
impl Unpin for ProcessInfo
impl UnwindSafe for ProcessInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more