Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate/jit/matmul tiling 2d #1472

Merged
merged 28 commits into from
Mar 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clippy
  • Loading branch information
louisfd committed Mar 21, 2024
commit b3af9650271674cc51e7b8eb1e3868317132de3c
8 changes: 3 additions & 5 deletions crates/burn-jit/src/kernel/matmul/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ impl Default for Tiling2dConfig {
}

/// The strategy to be used when launching a matmul kernel.
#[derive(Default)]
pub enum MatmulStrategy {
/// A simple kernel will be used with memory coalescing optimization.
Simple {
Expand All @@ -94,15 +95,12 @@ pub enum MatmulStrategy {
Tiling2dPadded(Tiling2dConfig),
#[cfg(feature = "autotune")]
/// Using autotune to chose the best kernel based on runtime information.
#[default]
Autotune,
}

#[cfg(feature = "autotune")]
impl Default for MatmulStrategy {
fn default() -> Self {
MatmulStrategy::Autotune
}
}


#[cfg(not(feature = "autotune"))]
impl Default for MatmulStrategy {
Expand Down
Loading