pub struct KernelTask<C, K>where
C: Compiler,
K: RudaKernel,{ /* private fields */ }Expand description
Wraps a RudaKernel to allow it be compiled.
Implementations§
Source§impl<C, K> KernelTask<C, K>where
C: Compiler,
K: RudaKernel,
impl<C, K> KernelTask<C, K>where
C: Compiler,
K: RudaKernel,
Sourcepub fn new(kernel_definition: K) -> KernelTask<C, K>
pub fn new(kernel_definition: K) -> KernelTask<C, K>
Create a new kernel task
Trait Implementations§
Source§impl<C, K> KernelMetadata for KernelTask<C, K>where
C: Compiler,
K: RudaKernel,
impl<C, K> KernelMetadata for KernelTask<C, K>where
C: Compiler,
K: RudaKernel,
Source§impl<C, K> RudaTask<C> for KernelTask<C, K>where
C: Compiler,
K: RudaKernel,
impl<C, K> RudaTask<C> for KernelTask<C, K>where
C: Compiler,
K: RudaKernel,
Source§fn kernel_definition(&self) -> Option<KernelDefinition>
fn kernel_definition(&self) -> Option<KernelDefinition>
Export the shared IR when this task originates from a kernel definition.
Source-only tasks do not have an IR representation.
Source§fn compile(
&self,
compiler: &mut C,
compilation_options: &<C as Compiler>::CompilationOptions,
mode: ExecutionMode,
addr_type: StorageType,
) -> Result<CompiledKernel<C>, CompilationError>
fn compile( &self, compiler: &mut C, compilation_options: &<C as Compiler>::CompilationOptions, mode: ExecutionMode, addr_type: StorageType, ) -> Result<CompiledKernel<C>, CompilationError>
Compile a kernel and return the compiled form with an optional non-text representation
Auto Trait Implementations§
impl<C, K> Freeze for KernelTask<C, K>
impl<C, K> RefUnwindSafe for KernelTask<C, K>
impl<C, K> Send for KernelTask<C, K>where
PhantomData<C>: Send,
impl<C, K> Sync for KernelTask<C, K>where
PhantomData<C>: Sync,
impl<C, K> Unpin for KernelTask<C, K>
impl<C, K> UnsafeUnpin for KernelTask<C, K>
impl<C, K> UnwindSafe for KernelTask<C, K>
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