#[non_exhaustive]pub struct GpuDeviceCapacityProbe {
pub cuda_total_bytes: u64,
pub cuda_free_bytes: u64,
pub owned_capacity_bytes: u64,
pub max_declarable_limit_bytes: u64,
pub max_managed_capacity_bytes: u64,
/* private fields */
}Expand description
Pre-build capacity probe for one CUDA device.
Reports the declarable capacity of one device without acquiring the process
owner lease or installing any allocator: the CUDA-visible totals, the NVML
physical total when reported, the owned capacity for the requested
ownership, and the managed capacity left after the backend reserve.
Build-time resolution stays the enforcement authority; this probe
predicts ownership-vs-facts inputs without requiring callers to resolve
limits through repeated build() failures.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cuda_total_bytes: u64CUDA-visible allocation capacity. Ownership and explicit limits are compared against this value. The NVML total plays no part in that comparison.
cuda_free_bytes: u64CUDA-visible free allocation bytes sampled by the probe; not an admission balance.
owned_capacity_bytes: u64CUDA-visible total or the promised static-partition limit, in bytes.
max_declarable_limit_bytes: u64Largest explicit managed-capacity limit this ownership accepts, before the backend reserve is subtracted.
max_managed_capacity_bytes: u64Owned capacity minus backend reserve, in bytes.
Trait Implementations§
Source§impl Clone for GpuDeviceCapacityProbe
impl Clone for GpuDeviceCapacityProbe
impl Copy for GpuDeviceCapacityProbe
Source§impl Debug for GpuDeviceCapacityProbe
impl Debug for GpuDeviceCapacityProbe
impl Eq for GpuDeviceCapacityProbe
Source§impl PartialEq for GpuDeviceCapacityProbe
impl PartialEq for GpuDeviceCapacityProbe
impl StructuralPartialEq for GpuDeviceCapacityProbe
Auto Trait Implementations§
impl Freeze for GpuDeviceCapacityProbe
impl RefUnwindSafe for GpuDeviceCapacityProbe
impl Send for GpuDeviceCapacityProbe
impl Sync for GpuDeviceCapacityProbe
impl Unpin for GpuDeviceCapacityProbe
impl UnsafeUnpin for GpuDeviceCapacityProbe
impl UnwindSafe for GpuDeviceCapacityProbe
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more