pub enum SplitRatio {
Measured,
Fixed(f64),
}Expand description
How to choose the CPU/GPU lane split.
Variants§
Measured
Use the ratio measured by examples/hybrid_gpu_report.rs on the
reference hardware.
On that machine the measured answer is 0.0 — the GPU never beat
CpuMulti — so this resolves to a CPU-only plan. That is a real
measurement, not a placeholder: see the module docs.
Fixed(f64)
A caller-supplied fraction of lanes to send to the GPU, clamped to
[0.0, 1.0]. Take it from your own run of the crossover report rather
than guessing.
Trait Implementations§
Source§impl Clone for SplitRatio
impl Clone for SplitRatio
impl Copy for SplitRatio
Source§impl Debug for SplitRatio
impl Debug for SplitRatio
Source§impl Default for SplitRatio
impl Default for SplitRatio
Source§impl PartialEq for SplitRatio
impl PartialEq for SplitRatio
impl StructuralPartialEq for SplitRatio
Auto Trait Implementations§
impl Freeze for SplitRatio
impl RefUnwindSafe for SplitRatio
impl Send for SplitRatio
impl Sync for SplitRatio
impl Unpin for SplitRatio
impl UnsafeUnpin for SplitRatio
impl UnwindSafe for SplitRatio
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