pub struct DeviceMemoryFailureReport {
pub device_ordinal: usize,
pub callback_installed: bool,
pub callback_install_unavailable: bool,
pub allocation_failure_count: u64,
pub total_failed_allocation_bytes: u64,
pub largest_failed_allocation_bytes: u64,
pub trim_retry_count: u64,
pub pool_usage_observation_count: u64,
pub last_failed_allocation_bytes: u64,
pub last_pool_reserved_current_bytes: u64,
pub last_pool_used_current_bytes: u64,
}Expand description
Point-in-time device memory allocation-failure report.
Fields§
§device_ordinal: usizeCUDA ordinal monitored by the installed allocation-failure callback.
callback_installed: boolWhether the native memory manager updates this report’s tracker.
Whether callback installation was unavailable; excludes callback_installed.
allocation_failure_count: u64Allocation failures observed over the memory-manager installation lifetime.
total_failed_allocation_bytes: u64Sum of failed allocation request sizes in bytes.
largest_failed_allocation_bytes: u64Largest failed allocation request size in bytes; zero before any failure.
trim_retry_count: u64Always zero because this memory-manager callback declines allocator retries.
pool_usage_observation_count: u64Failure callbacks carrying a CUDA async-pool usage sample.
last_failed_allocation_bytes: u64Most recent failed request size in bytes; zero before any failure.
last_pool_reserved_current_bytes: u64Pool-reserved bytes from the last callback carrying a pool sample.
Zero before the first sample; consult pool_usage_observation_count.
last_pool_used_current_bytes: u64Pool-used bytes from the last callback carrying a pool sample.
Zero before the first sample; consult pool_usage_observation_count.
Trait Implementations§
Source§impl Clone for DeviceMemoryFailureReport
impl Clone for DeviceMemoryFailureReport
Source§impl Debug for DeviceMemoryFailureReport
impl Debug for DeviceMemoryFailureReport
impl Eq for DeviceMemoryFailureReport
impl StructuralPartialEq for DeviceMemoryFailureReport
Auto Trait Implementations§
impl Freeze for DeviceMemoryFailureReport
impl RefUnwindSafe for DeviceMemoryFailureReport
impl Send for DeviceMemoryFailureReport
impl Sync for DeviceMemoryFailureReport
impl Unpin for DeviceMemoryFailureReport
impl UnsafeUnpin for DeviceMemoryFailureReport
impl UnwindSafe for DeviceMemoryFailureReport
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