Skip to content

Commit

Permalink
Default warp size in CPP compiler to 32
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Nov 21, 2024
1 parent b732703 commit b58b89d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/cubecl-cpp/src/shared/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,17 @@ pub trait Dialect:
fn warp_any(out: &IndexedVariable<Self>) -> String;
}

#[derive(Clone, Debug, Default)]
#[derive(Clone, Debug)]
pub struct CompilationOptions {
pub warp_size: u32,
}

impl Default for CompilationOptions {
fn default() -> Self {
Self { warp_size: 32 }
}
}

#[allow(clippy::too_many_arguments)]
#[derive(Clone, Debug, Default)]
pub struct CppCompiler<D: Dialect> {
Expand Down

0 comments on commit b58b89d

Please sign in to comment.