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.
Trait Implementations§
Source§impl AcceleratorSession for CudaSession
impl AcceleratorSession for CudaSession
Source§fn backend_kind(&self) -> BackendKind
fn backend_kind(&self) -> BackendKind
Backend owned by this session.
Source§fn execution_stats(&self) -> ExecutionStats
fn execution_stats(&self) -> ExecutionStats
Execution statistics accumulated by this session.
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
Source§impl DeviceSubmitSession for CudaSession
impl DeviceSubmitSession for CudaSession
Source§fn record_submit(&mut self)
fn record_submit(&mut self)
Record a submitted device operation.
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