Struct necsim_impls_cuda::value_buffer::ValueBuffer
source · pub struct ValueBuffer<T, const M2D: bool, const M2H: bool>where
T: StackOnly + PortableBitSemantics + TypeGraphLayout,{ /* private fields */ }
Implementations§
source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool, const M2H: bool> ValueBuffer<T, M2D, M2H>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool, const M2H: bool> ValueBuffer<T, M2D, M2H>
source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool> ValueBuffer<T, M2D, true>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool> ValueBuffer<T, M2D, true>
Trait Implementations§
source§impl<T, const M2D: bool, const M2H: bool> RustToCuda for ValueBuffer<T, M2D, M2H>where
T: StackOnly + PortableBitSemantics + TypeGraphLayout,
impl<T, const M2D: bool, const M2H: bool> RustToCuda for ValueBuffer<T, M2D, M2H>where
T: StackOnly + PortableBitSemantics + TypeGraphLayout,
type CudaRepresentation = ValueBufferCudaRepresentation<T, M2D, M2H>
type CudaAllocation = CombinedCudaAlloc<<SplitSliceOverCudaThreadsConstStride<CudaExchangeBuffer<MaybeSome<T>, M2D, M2H>, 1> as RustToCuda>::CudaAllocation, CombinedCudaAlloc<<SplitSliceOverCudaThreadsConstStride<CudaExchangeBuffer<bool, true, true>, 1> as RustToCuda>::CudaAllocation, NoCudaAlloc>>
source§impl<T, const M2D: bool, const M2H: bool> RustToCudaAsync for ValueBuffer<T, M2D, M2H>where
T: StackOnly + PortableBitSemantics + TypeGraphLayout,
impl<T, const M2D: bool, const M2H: bool> RustToCudaAsync for ValueBuffer<T, M2D, M2H>where
T: StackOnly + PortableBitSemantics + TypeGraphLayout,
type CudaAllocationAsync = CombinedCudaAlloc<<SplitSliceOverCudaThreadsConstStride<CudaExchangeBuffer<MaybeSome<T>, M2D, M2H>, 1> as RustToCudaAsync>::CudaAllocationAsync, CombinedCudaAlloc<<SplitSliceOverCudaThreadsConstStride<CudaExchangeBuffer<bool, true, true>, 1> as RustToCudaAsync>::CudaAllocationAsync, NoCudaAlloc>>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool, const M2H: bool> SafeMutableAliasing for ValueBuffer<T, M2D, M2H>where
SplitSliceOverCudaThreadsConstStride<CudaExchangeBuffer<bool, true, true>, 1_usize>: SafeMutableAliasing,
SplitSliceOverCudaThreadsConstStride<CudaExchangeBuffer<MaybeSome<T>, M2D, M2H>, 1_usize>: SafeMutableAliasing,
Auto Trait Implementations§
impl<T, const M2D: bool, const M2H: bool> !Freeze for ValueBuffer<T, M2D, M2H>
impl<T, const M2D: bool, const M2H: bool> !RefUnwindSafe for ValueBuffer<T, M2D, M2H>
impl<T, const M2D: bool, const M2H: bool> !Send for ValueBuffer<T, M2D, M2H>
impl<T, const M2D: bool, const M2H: bool> Sync for ValueBuffer<T, M2D, M2H>where
T: Sync,
impl<T, const M2D: bool, const M2H: bool> Unpin for ValueBuffer<T, M2D, M2H>
impl<T, const M2D: bool, const M2H: bool> UnwindSafe for ValueBuffer<T, M2D, M2H>where
T: RefUnwindSafe,
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<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read moresource§impl<T> LendToCuda for Twhere
T: RustToCuda,
impl<T> LendToCuda for Twhere
T: RustToCuda,
source§fn lend_to_cuda<O, E, F>(&self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync,
fn lend_to_cuda<O, E, F>(&self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync,
Lends an immutable borrow of
&self
to CUDA: Read moresource§fn lend_to_cuda_mut<O, E, F>(&mut self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync + SafeMutableAliasing,
fn lend_to_cuda_mut<O, E, F>(&mut self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync + SafeMutableAliasing,
source§fn move_to_cuda<O, E, F>(self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceOwned<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Send + RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
fn move_to_cuda<O, E, F>(self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceOwned<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Send + RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
source§impl<T> LendToCudaAsync for Twhere
T: RustToCudaAsync,
impl<T> LendToCudaAsync for Twhere
T: RustToCudaAsync,
source§fn lend_to_cuda_async<'stream, O, E, F>(
&self,
stream: Stream<'stream>,
inner: F
) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(Async<'_, 'stream, HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
T: Sync,
fn lend_to_cuda_async<'stream, O, E, F>(
&self,
stream: Stream<'stream>,
inner: F
) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(Async<'_, 'stream, HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
T: Sync,
Lends an immutable copy of
&self
to CUDA: Read more