#[non_exhaustive]pub enum GpuQuerySource {
Dxgi,
Nvml,
NvidiaSmi,
}Expand description
The backend that produced a GPU memory measurement.
#[non_exhaustive]: more backends (e.g., AMD ROCm SMI, Apple Metal)
may be added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dxgi
Windows DXGI per-process query (IDXGIAdapter3::QueryVideoMemoryInfo).
Nvml
NVML per-process query (nvmlDeviceGetComputeRunningProcesses).
NvidiaSmi
nvidia-smi subprocess. In ProcessGpuInfo this is the
device-wide fallback (the subprocess cannot break the figure
down per-process for the calling process). In
GpuProcessEntry each row is per-process — one entry per
CUDA process from nvidia-smi --query-compute-apps.
Trait Implementations§
Source§impl Clone for GpuQuerySource
impl Clone for GpuQuerySource
Source§fn clone(&self) -> GpuQuerySource
fn clone(&self) -> GpuQuerySource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GpuQuerySource
impl Debug for GpuQuerySource
Source§impl PartialEq for GpuQuerySource
impl PartialEq for GpuQuerySource
Source§fn eq(&self, other: &GpuQuerySource) -> bool
fn eq(&self, other: &GpuQuerySource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GpuQuerySource
impl Eq for GpuQuerySource
impl StructuralPartialEq for GpuQuerySource
Auto Trait Implementations§
impl Freeze for GpuQuerySource
impl RefUnwindSafe for GpuQuerySource
impl Send for GpuQuerySource
impl Sync for GpuQuerySource
impl Unpin for GpuQuerySource
impl UnsafeUnpin for GpuQuerySource
impl UnwindSafe for GpuQuerySource
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