pub struct ExchangeWrapperOnDevice<T: RustToCuda<CudaAllocation: EmptyCudaAlloc>> { /* private fields */ }
Available on crate feature
host
only.Implementations§
source§impl<T: RustToCuda<CudaAllocation: EmptyCudaAlloc>> ExchangeWrapperOnDevice<T>
impl<T: RustToCuda<CudaAllocation: EmptyCudaAlloc>> ExchangeWrapperOnDevice<T>
sourcepub fn move_to_host(self) -> CudaResult<ExchangeWrapperOnHost<T>>
pub fn move_to_host(self) -> CudaResult<ExchangeWrapperOnHost<T>>
Moves the data synchronously back to the host CPU device.
§Errors
Returns a rustacuda::error::CudaError
iff an error occurs inside
CUDA
pub fn as_ref( &self, ) -> HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>
source§impl<T: RustToCudaAsync<CudaAllocationAsync: EmptyCudaAlloc, CudaAllocation: EmptyCudaAlloc>> ExchangeWrapperOnDevice<T>
impl<T: RustToCudaAsync<CudaAllocationAsync: EmptyCudaAlloc, CudaAllocation: EmptyCudaAlloc>> ExchangeWrapperOnDevice<T>
sourcepub fn move_to_host_async<'stream>(
self,
stream: Stream<'stream>,
) -> CudaResult<Async<'static, 'stream, ExchangeWrapperOnHost<T>, CompletionFnMut<'static, ExchangeWrapperOnHost<T>>>>
pub fn move_to_host_async<'stream>( self, stream: Stream<'stream>, ) -> CudaResult<Async<'static, 'stream, ExchangeWrapperOnHost<T>, CompletionFnMut<'static, ExchangeWrapperOnHost<T>>>>
Moves the data asynchronously back to the host CPU device.
§Errors
Returns a rustacuda::error::CudaError
iff an error occurs inside
CUDA
Auto Trait Implementations§
impl<T> Freeze for ExchangeWrapperOnDevice<T>
impl<T> !PortableBitSemantics for ExchangeWrapperOnDevice<T>
impl<T> RefUnwindSafe for ExchangeWrapperOnDevice<T>where
<T as RustToCuda>::CudaAllocation: Sized,
T: RefUnwindSafe,
<T as RustToCuda>::CudaRepresentation: RefUnwindSafe,
impl<T> !Send for ExchangeWrapperOnDevice<T>
impl<T> !StackOnly for ExchangeWrapperOnDevice<T>
impl<T> !Sync for ExchangeWrapperOnDevice<T>
impl<T> Unpin for ExchangeWrapperOnDevice<T>
impl<T> UnwindSafe for ExchangeWrapperOnDevice<T>where
<T as RustToCuda>::CudaAllocation: Sized,
T: UnwindSafe,
<T as RustToCuda>::CudaRepresentation: 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
source§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 more