Skip to content

Commit

Permalink
Add tune_with marker macro
Browse files Browse the repository at this point in the history
  • Loading branch information
wingertge committed Sep 19, 2024
1 parent 41ca9c0 commit c1f9169
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/cubecl-runtime/src/tune/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod tune_cache;
mod tuner;
mod util;

pub use crate::tune_with;
pub use local::*;
pub use operation::*;
pub use tune_benchmark::*;
Expand Down
11 changes: 11 additions & 0 deletions crates/cubecl-runtime/src/tune/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ pub fn anchor(x: usize, max: Option<usize>) -> usize {
power_of_2
}
}

/// Tune the operation set with these benchmark inputs
#[macro_export]
macro_rules! tune_with {
($($args:expr),*) => {
($($args),*)
};
($($args:expr,)*) => {
($($args),*)
};
}

0 comments on commit c1f9169

Please sign in to comment.