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: u32
§used_gpu_memory: UsedGpuMemory
Amount 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§
source§impl Clone for ProcessInfo
impl Clone for ProcessInfo
source§fn clone(&self) -> ProcessInfo
fn clone(&self) -> ProcessInfo
Returns a copy 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 ProcessInfo
impl Debug for ProcessInfo
source§impl From<nvmlProcessInfo_v2_st> for ProcessInfo
impl From<nvmlProcessInfo_v2_st> for ProcessInfo
source§fn from(struct_: nvmlProcessInfo_t) -> Self
fn from(struct_: nvmlProcessInfo_t) -> Self
Converts to this type from the input type.
source§impl Hash for ProcessInfo
impl Hash for ProcessInfo
source§impl PartialEq for ProcessInfo
impl PartialEq for ProcessInfo
source§fn 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 ==
.impl Eq 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§
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