pub struct CudaSession { /* private fields */ }Expand description
Mutable CUDA adapter session reused across submissions.
Implementations§
Source§impl CudaSession
impl CudaSession
Sourcepub fn submissions(&self) -> u64
pub fn submissions(&self) -> u64
Number of submissions recorded by this session.
Sourcepub fn is_runtime_initialized(&self) -> bool
pub fn is_runtime_initialized(&self) -> bool
True when a CUDA runtime context has been initialized.
Sourcepub fn decode_pool_diagnostics(
&self,
) -> Result<CudaDecodePoolDiagnostics, Error>
pub fn decode_pool_diagnostics( &self, ) -> Result<CudaDecodePoolDiagnostics, Error>
Snapshot only the two device-buffer pools retained for decode work.
Calling this method does not initialize a CUDA context or either pool.
Sourcepub fn diagnostics(&self) -> Result<CudaSessionDiagnostics, Error>
pub fn diagnostics(&self) -> Result<CudaSessionDiagnostics, Error>
Snapshot transfer/event counters and decode-pool retention without initializing CUDA.
Trait Implementations§
Source§impl Clone for CudaSession
impl Clone for CudaSession
Source§fn clone(&self) -> CudaSession
fn clone(&self) -> CudaSession
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 CudaSession
impl Debug for CudaSession
Source§impl Default for CudaSession
impl Default for CudaSession
Source§fn default() -> CudaSession
fn default() -> CudaSession
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CudaSession
impl RefUnwindSafe for CudaSession
impl Send for CudaSession
impl Sync for CudaSession
impl Unpin for CudaSession
impl UnsafeUnpin for CudaSession
impl UnwindSafe for CudaSession
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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