pub enum KernelSelection {
Measured,
Parallel,
Sequential,
}Expand description
How a runtime picks between a kernel’s partitioned and sequential code.
Variants§
Measured
Measure both implementations on the running simulation and keep the faster one.
Parallel
Always run the partitioned kernel.
Sequential
Always run the sequential kernel.
Trait Implementations§
Source§impl Clone for KernelSelection
impl Clone for KernelSelection
impl Copy for KernelSelection
Source§impl Debug for KernelSelection
impl Debug for KernelSelection
Source§impl Default for KernelSelection
impl Default for KernelSelection
Source§impl<'de> Deserialize<'de> for KernelSelection
impl<'de> Deserialize<'de> for KernelSelection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KernelSelection
Source§impl PartialEq for KernelSelection
impl PartialEq for KernelSelection
Source§impl Serialize for KernelSelection
impl Serialize for KernelSelection
impl StructuralPartialEq for KernelSelection
Auto Trait Implementations§
impl Freeze for KernelSelection
impl RefUnwindSafe for KernelSelection
impl Send for KernelSelection
impl Sync for KernelSelection
impl Unpin for KernelSelection
impl UnsafeUnpin for KernelSelection
impl UnwindSafe for KernelSelection
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