pub struct DeviceResourceProfile {
pub device_ordinal: usize,
pub device_capabilities: DeviceCapabilities,
pub managed_capacity_bytes: u64,
pub default_query_limit_bytes: u64,
pub max_active_attempts: usize,
pub root_lane_count: usize,
pub root_stream_count: usize,
pub source_work_per_attempt: usize,
pub stream_pool_size: usize,
pub worker_job_capacity: usize,
pub cache_cap_bytes: u64,
/* private fields */
}Expand description
Frozen capacity and execution-slot bounds for one CUDA device.
cache_cap_bytes (K) reserves a bounded per-device cache share taken
from the managed capacity (M). Query grants and frozen residents share
only the remaining query share (Q = M - K); query admission never
promises the same bytes that back the cache share.
Fields§
§device_ordinal: usizeCUDA device whose ledger owns this resource profile.
device_capabilities: DeviceCapabilitiesCapability metadata frozen with this device’s resource envelope.
managed_capacity_bytes: u64M: the bytes the ledger may promise to grants, residents, and cache.
default_query_limit_bytes: u64Default immutable grant in bytes, before any resident-capacity adjustment at admission.
max_active_attempts: usizeA_d. Also the number of lifecycle job permits, root streams, and
attempt lanes.
root_lane_count: usizeEquals max_active_attempts; one lane per admitted attempt.
root_stream_count: usizeEquals max_active_attempts; one root stream per admitted attempt.
source_work_per_attempt: usizeS_d, normalized to at least 1.
stream_pool_size: usizeAt least A_d + A_d * S_d, checked by resolve.
worker_job_capacity: usizeAt least A_d + A_d * S_d, checked by resolve.
cache_cap_bytes: u64Cache share reserved from managed capacity in bytes.
Implementations§
Source§impl DeviceResourceProfile
impl DeviceResourceProfile
Query share (Q = M - K) promisable to grants plus frozen residents.
Cache charges (C <= K) never participate in this share, so query
admission and cache eviction cannot promise the same bytes.
Trait Implementations§
Source§impl Clone for DeviceResourceProfile
impl Clone for DeviceResourceProfile
Source§impl Debug for DeviceResourceProfile
impl Debug for DeviceResourceProfile
impl Eq for DeviceResourceProfile
Source§impl PartialEq for DeviceResourceProfile
impl PartialEq for DeviceResourceProfile
impl StructuralPartialEq for DeviceResourceProfile
Auto Trait Implementations§
impl Freeze for DeviceResourceProfile
impl RefUnwindSafe for DeviceResourceProfile
impl Send for DeviceResourceProfile
impl Sync for DeviceResourceProfile
impl Unpin for DeviceResourceProfile
impl UnsafeUnpin for DeviceResourceProfile
impl UnwindSafe for DeviceResourceProfile
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