pub enum SumStrategy {
OneShot(u32),
Chained(KernelReduceStrategy),
Autotune,
}Expand description
Select a strategy to perform a sum.
Variants§
OneShot(u32)
Run a single kernel with many cubes working in parallel to sum all elements. The provided value is the number of elements summed per unit (up-to-rounding )
Chained(KernelReduceStrategy)
Use multiple kernels
Autotune
Available on crate feature
autotune only.Use autotune to find the best cube count given the hardware and the input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SumStrategy
impl RefUnwindSafe for SumStrategy
impl Send for SumStrategy
impl Sync for SumStrategy
impl Unpin for SumStrategy
impl UnwindSafe for SumStrategy
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