pub struct LocalTuner<AK: AutotuneKey, ID> { /* private fields */ }
Expand description
A local tuner allows to create a tuner for a specific key that can be different from the server key.
Implementations§
Source§impl<AK: AutotuneKey + 'static, ID: Hash + PartialEq + Eq + Clone + Display> LocalTuner<AK, ID>
impl<AK: AutotuneKey + 'static, ID: Hash + PartialEq + Eq + Clone + Display> LocalTuner<AK, ID>
Sourcepub fn execute<S, C, Out: Send + 'static>(
&self,
id: &ID,
client: &ComputeClient<S, C>,
autotune_operation_set: Box<dyn AutotuneOperationSet<AK, Out>>,
) -> Outwhere
S: ComputeServer + 'static,
C: ComputeChannel<S> + 'static,
pub fn execute<S, C, Out: Send + 'static>(
&self,
id: &ID,
client: &ComputeClient<S, C>,
autotune_operation_set: Box<dyn AutotuneOperationSet<AK, Out>>,
) -> Outwhere
S: ComputeServer + 'static,
C: ComputeChannel<S> + 'static,
Execute the best operation in the provided autotune operation set
Sourcepub fn autotune_result(&self, id: &ID, key: &AK) -> TuneCacheResult
pub fn autotune_result(&self, id: &ID, key: &AK) -> TuneCacheResult
Return the autotune result given a key.
Auto Trait Implementations§
impl<AK, ID> !Freeze for LocalTuner<AK, ID>
impl<AK, ID> !RefUnwindSafe for LocalTuner<AK, ID>
impl<AK, ID> Send for LocalTuner<AK, ID>where
ID: Send,
impl<AK, ID> Sync for LocalTuner<AK, ID>
impl<AK, ID> Unpin for LocalTuner<AK, ID>
impl<AK, ID> UnwindSafe for LocalTuner<AK, ID>where
ID: UnwindSafe,
AK: UnwindSafe,
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