pub struct FusedGemmProblem {
pub m: usize,
pub n: usize,
pub k: usize,
pub baseline_ms: f64,
pub has_bias: bool,
pub has_activation: bool,
pub label: String,
}Expand description
A GEMM problem with optional fused bias and activation.
baseline_ms is the cuBLAS-only GEMM time (no bias, no activation).
The evaluator extends this to a full pipeline baseline automatically.
Fields§
§m: usize§n: usize§k: usize§baseline_ms: f64§has_bias: bool§has_activation: bool§label: StringImplementations§
Source§impl FusedGemmProblem
impl FusedGemmProblem
pub fn new( m: usize, n: usize, k: usize, baseline_ms: f64, has_bias: bool, has_activation: bool, label: impl Into<String>, ) -> Self
Sourcepub fn num_fused_ops(&self) -> usize
pub fn num_fused_ops(&self) -> usize
Number of fused ops beyond GEMM (0–2).
Sourcepub fn cublas_pipeline_ms(&self) -> f64
pub fn cublas_pipeline_ms(&self) -> f64
cuBLAS pipeline time: GEMM + separate bias/activation kernels.
Each extra op costs one read + one write of the output matrix plus a kernel launch. Memory is modelled at 1200 GB/s (60% of A100 HBM peak — realistic for element-wise loads/stores).
Trait Implementations§
Source§impl Clone for FusedGemmProblem
impl Clone for FusedGemmProblem
Auto Trait Implementations§
impl Freeze for FusedGemmProblem
impl RefUnwindSafe for FusedGemmProblem
impl Send for FusedGemmProblem
impl Sync for FusedGemmProblem
impl Unpin for FusedGemmProblem
impl UnsafeUnpin for FusedGemmProblem
impl UnwindSafe for FusedGemmProblem
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