pub struct KernelOperation<K: KernelSignature, T> { /* private fields */ }Expand description
Prepared owned kernel work with an explicit resource and access contract.
Trait Implementations§
Source§impl<K: Debug + KernelSignature, T: Debug> Debug for KernelOperation<K, T>where
K::RawArguments: Debug,
impl<K: Debug + KernelSignature, T: Debug> Debug for KernelOperation<K, T>where
K::RawArguments: Debug,
impl<K: KernelSignature, T: 'static> DeviceOperation for KernelOperation<K, T>
Source§impl<K: KernelSignature, T: 'static> Operation for KernelOperation<K, T>
impl<K: KernelSignature, T: 'static> Operation for KernelOperation<K, T>
Source§type Pending = <KernelOperation<K, T> as Operation>::Output
type Pending = <KernelOperation<K, T> as Operation>::Output
Value produced by enqueue before successful CUDA completion.
It must not permit safe reads of results that are still pending.
Source§fn enqueue(self, execution: &mut Execution) -> Result<T>
fn enqueue(self, execution: &mut Execution) -> Result<T>
Registers resources and enqueues this operation on the execution’s stream, returning its pending result. Read more
Source§unsafe fn resolve(pending: Self::Pending) -> Result<Self::Output>
unsafe fn resolve(pending: Self::Pending) -> Result<Self::Output>
Resolves host results after successful native completion and resource retirement. Read more
Source§fn submit_on(
self,
stream: &Stream,
) -> Result<Submission<Self::Output, Self::Pending>>
fn submit_on( self, stream: &Stream, ) -> Result<Submission<Self::Output, Self::Pending>>
Enqueues this operation on
stream and returns its pending result with independent checked completion. Read moreSource§fn then<F, N>(self, next: F) -> Then<Self, F>
fn then<F, N>(self, next: F) -> Then<Self, F>
Chains dependent device work on the same stream without promoting pending values.
Source§fn pair<O: Operation>(self, other: O) -> Pair<Self, O>
fn pair<O: Operation>(self, other: O) -> Pair<Self, O>
Pairs independent work on the selected stream; separate submissions can overlap.
Source§fn map<F, T: 'static>(self, map: F) -> Map<Self, F>
fn map<F, T: 'static>(self, map: F) -> Map<Self, F>
Runs host code on the waiting or polling thread after successful completion.
Dropping the submission before resolution discards this callback.
Shares one execution and orders every consuming stream after its completion event.
Source§impl<K: KernelSignature, T: 'static> Recordable for KernelOperation<K, T>
impl<K: KernelSignature, T: 'static> Recordable for KernelOperation<K, T>
Auto Trait Implementations§
impl<K, T> !RefUnwindSafe for KernelOperation<K, T>
impl<K, T> !UnwindSafe for KernelOperation<K, T>
impl<K, T> Forget for KernelOperation<K, T>
impl<K, T> Freeze for KernelOperation<K, T>
impl<K, T> Move for KernelOperation<K, T>
impl<K, T> Send for KernelOperation<K, T>
impl<K, T> Sync for KernelOperation<K, T>
impl<K, T> Unpin for KernelOperation<K, T>
impl<K, T> UnsafeUnpin for KernelOperation<K, T>where
PreparedLaunch<K>: UnsafeUnpin,
<K as KernelSignature>::RawArguments: UnsafeUnpin,
T: UnsafeUnpin,
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