pub struct CutensorWorkspaceStats {
pub retained_entries: usize,
pub retained_bytes: u64,
}Expand description
Retained shared cuTENSOR contraction scratch, as reported to callers.
This is scratch the backend keeps for reuse, not total device memory: a workspace in use by a queued contraction, a retiring allocation, the allocator arena, and vendor-internal allocations are all excluded.
§Examples
use tenferro_gpu::cuda::CutensorWorkspaceStats;
let stats = CutensorWorkspaceStats {
retained_entries: 1,
retained_bytes: 4 << 20,
};
assert_eq!(stats.retained_bytes, 4 << 20);Fields§
§retained_entries: usizePhysical stream slots currently holding a shared workspace buffer.
retained_bytes: u64Total retained capacity of those buffers, in bytes.
Trait Implementations§
Source§impl Clone for CutensorWorkspaceStats
impl Clone for CutensorWorkspaceStats
Source§fn clone(&self) -> CutensorWorkspaceStats
fn clone(&self) -> CutensorWorkspaceStats
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 moreimpl Copy for CutensorWorkspaceStats
Source§impl Debug for CutensorWorkspaceStats
impl Debug for CutensorWorkspaceStats
Source§impl Default for CutensorWorkspaceStats
impl Default for CutensorWorkspaceStats
Source§fn default() -> CutensorWorkspaceStats
fn default() -> CutensorWorkspaceStats
Returns the “default value” for a type. Read more
impl Eq for CutensorWorkspaceStats
Source§impl PartialEq for CutensorWorkspaceStats
impl PartialEq for CutensorWorkspaceStats
impl StructuralPartialEq for CutensorWorkspaceStats
Auto Trait Implementations§
impl Freeze for CutensorWorkspaceStats
impl RefUnwindSafe for CutensorWorkspaceStats
impl Send for CutensorWorkspaceStats
impl Sync for CutensorWorkspaceStats
impl Unpin for CutensorWorkspaceStats
impl UnsafeUnpin for CutensorWorkspaceStats
impl UnwindSafe for CutensorWorkspaceStats
Blanket Implementations§
impl<T> Boilerplate 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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<T, U> Imply<T> for U
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> ⓘ
Converts
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> ⓘ
Converts
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