Trait cubecl_runtime::tune::AutotuneOperationSet
source · pub trait AutotuneOperationSet<K>: Send {
// Required methods
fn key(&self) -> K;
fn autotunables(&self) -> Vec<Box<dyn AutotuneOperation>>;
fn fastest(
self: Box<Self>,
fastest_index: usize,
) -> Box<dyn AutotuneOperation>;
// Provided method
fn compute_checksum(&self) -> String { ... }
}
Expand description
Groups operations of the same type for autotune
Required Methods§
sourcefn autotunables(&self) -> Vec<Box<dyn AutotuneOperation>>
fn autotunables(&self) -> Vec<Box<dyn AutotuneOperation>>
All candidate operations for autotuning this operation type Operations can run on toy tensors of relevant size
Provided Methods§
sourcefn compute_checksum(&self) -> String
fn compute_checksum(&self) -> String
Compute a checksum that can invalidate outdated cached auto-tune results.