pub struct CudaBackendParts {
pub ctx: Arc<CudaContext>,
pub stream: Arc<CudaStream>,
pub capability: GpuCapability,
}Expand description
The handles every cudarc backend shares once the probe succeeds: a context on the runtime’s selected device, that context’s default stream, and the device’s compute capability. Module-specific backends layer their own caches and optional eager compilation on top of these.
Fields§
§ctx: Arc<CudaContext>§stream: Arc<CudaStream>§capability: GpuCapabilityTrait Implementations§
Auto Trait Implementations§
impl Freeze for CudaBackendParts
impl RefUnwindSafe for CudaBackendParts
impl Send for CudaBackendParts
impl Sync for CudaBackendParts
impl Unpin for CudaBackendParts
impl UnsafeUnpin for CudaBackendParts
impl UnwindSafe for CudaBackendParts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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