From 8637b50dd6e81fa4177c2911f79a74075684b5c0 Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Wed, 20 Nov 2024 21:06:27 -0400 Subject: [PATCH] Remove code that is no longer used --- .../code/crates/shared/settings/src/lib.rs | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/blog/2024-11-21-optimizing-matrix-mul/code/crates/shared/settings/src/lib.rs b/blog/2024-11-21-optimizing-matrix-mul/code/crates/shared/settings/src/lib.rs index 0b05522..f606a80 100644 --- a/blog/2024-11-21-optimizing-matrix-mul/code/crates/shared/settings/src/lib.rs +++ b/blog/2024-11-21-optimizing-matrix-mul/code/crates/shared/settings/src/lib.rs @@ -65,24 +65,4 @@ impl BufferLayout { }; } -pub const NUM_BUFFERS: usize = 3; - pub const SHADER_ENTRY_POINT: &str = "matmul"; - -// Helper functions for index calculations -#[inline] -pub fn get_matrix_index(row: u32, col: u32, stride: u32) -> usize { - (row * stride + col) as usize -} - -pub fn validate_dimensions(a_dims: (u32, u32), b_dims: (u32, u32)) -> bool { - a_dims.1 == b_dims.0 -} - -pub fn get_output_dimensions(a_dims: (u32, u32), b_dims: (u32, u32)) -> Option<(u32, u32)> { - if validate_dimensions(a_dims, b_dims) { - Some((a_dims.0, b_dims.1)) - } else { - None - } -}