Enum cubecl_core::frontend::ArrayArg
source · pub enum ArrayArg<'a, R: Runtime> {
Handle {
handle: ArrayHandleRef<'a, R>,
vectorization_factor: u8,
},
Alias {
input_pos: usize,
},
}
Variants§
Handle
The array is passed with an array handle.
Fields
§
handle: ArrayHandleRef<'a, R>
The array handle.
Alias
The array is aliasing another input array.
Implementations§
Trait Implementations§
source§impl<'a, R: Runtime> ArgSettings<R> for ArrayArg<'a, R>
impl<'a, R: Runtime> ArgSettings<R> for ArrayArg<'a, R>
source§fn register(&self, launcher: &mut KernelLauncher<R>)
fn register(&self, launcher: &mut KernelLauncher<R>)
Register the information to the KernelLauncher.
source§fn configure_input(
&self,
position: usize,
settings: KernelSettings,
) -> KernelSettings
fn configure_input( &self, position: usize, settings: KernelSettings, ) -> KernelSettings
Configure an input argument at the given position.
source§fn configure_output(
&self,
position: usize,
settings: KernelSettings,
) -> KernelSettings
fn configure_output( &self, position: usize, settings: KernelSettings, ) -> KernelSettings
Configure an output argument at the given position.
Auto Trait Implementations§
impl<'a, R> Freeze for ArrayArg<'a, R>
impl<'a, R> RefUnwindSafe for ArrayArg<'a, R>where
<<<R as Runtime>::Server as ComputeServer>::MemoryManagement as MemoryManagement<<<R as Runtime>::Server as ComputeServer>::Storage>>::Handle: RefUnwindSafe,
impl<'a, R> Send for ArrayArg<'a, R>
impl<'a, R> Sync for ArrayArg<'a, R>
impl<'a, R> Unpin for ArrayArg<'a, R>
impl<'a, R> UnwindSafe for ArrayArg<'a, R>where
<<<R as Runtime>::Server as ComputeServer>::MemoryManagement as MemoryManagement<<<R as Runtime>::Server as ComputeServer>::Storage>>::Handle: 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