pub struct KernelParams {
pub operation: Operation,
pub block_size: (usize, usize, usize),
pub threads_per_block: usize,
pub use_shared_memory: bool,
pub unroll_factor: usize,
pub vector_width: usize,
pub grid_size: (usize, usize, usize),
pub estimated_time_us: f64,
}Expand description
Tuned kernel parameters
Fields§
§operation: OperationOperation type
block_size: (usize, usize, usize)Block/tile size (x, y, z)
threads_per_block: usizeThread count per block
Use shared/local memory
unroll_factor: usizeUnroll factor for loops
vector_width: usizeVectorization width (1, 2, 4, 8, 16)
grid_size: (usize, usize, usize)Grid dimensions
estimated_time_us: f64Estimated execution time in microseconds
Trait Implementations§
Source§impl Clone for KernelParams
impl Clone for KernelParams
Source§fn clone(&self) -> KernelParams
fn clone(&self) -> KernelParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelParams
impl Debug for KernelParams
Source§impl Default for KernelParams
impl Default for KernelParams
Source§impl<'de> Deserialize<'de> for KernelParams
impl<'de> Deserialize<'de> for KernelParams
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
Auto Trait Implementations§
impl Freeze for KernelParams
impl RefUnwindSafe for KernelParams
impl Send for KernelParams
impl Sync for KernelParams
impl Unpin for KernelParams
impl UnsafeUnpin for KernelParams
impl UnwindSafe for KernelParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ConfigSerializable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
impl<T> ConfigSerializable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more