Skip to content

chore(std): remove dead undeclared bench-stub files - #19

Merged
TheTom merged 1 commit into
devfrom
ek/prune-dead-bench-stubs
Jun 22, 2026
Merged

chore(std): remove dead undeclared bench-stub files#19
TheTom merged 1 commit into
devfrom
ek/prune-dead-bench-stubs

Conversation

@ekryski

@ekryski ekryski commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Removes two dead files in crates/metaltile-std/src/mlx/ that are not declared in mlx/mod.rs (never compiled) and reference the removed metaltile-bench API (GpuRunner / OpResult):

  • mlx/conv.rs — 27-line bench_conv stub returning vec![]; real conv kernels live in kernels/convolution/.
  • mlx/shared.rs — 969-line helper module whose live equivalents (dtype_label, mlx_tname, dtype_tol, EquivResult, *_typed) already exist in crate::utils; this was the orphaned original.

cargo build --workspace stays green — nothing referenced either file. Independent of the kernel-reorg stack (off dev, touches no migrated files).

convolution/mlx_conv_stub.rs is the same category but is relocated by the convolution PR (#15), so it'll be pruned there instead (deleting it here would clash with that move).

@github-actions github-actions Bot added the ignore-for-release Hidden from release notes label Jun 12, 2026
@TheTom

TheTom commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@ekryski confirmed both files are genuinely dead (undeclared in mlx/mod.rs, never compiled). Two notes: the body says shared.rs's EquivResult "already exists in crate::utils", dtype_label/mlx_tname/dtype_tol do, but EquivResult doesn't (cosmetic, file's dead anyway). And #27 also deletes these same two files, recommend landing #19 first or noting #27 subsumes it to avoid a delete/delete. Approve.

Two files in mlx/ are not declared in mlx/mod.rs (so never compiled) and use
the removed metaltile-bench API (GpuRunner / OpResult):

- mlx/conv.rs — a 27-line bench_conv stub returning vec![]; the real conv
  kernels live in kernels/convolution/.
- mlx/shared.rs — a 969-line helper module whose live equivalents
  (dtype_label / mlx_tname / dtype_tol / EquivResult / *_typed) already exist
  in crate::utils; this was the orphaned original.

cargo build --workspace stays green (nothing referenced either).

(convolution/mlx_conv_stub.rs is the same category but is relocated by the
convolution PR (#15); it'll be pruned there to avoid a move-vs-delete clash.)
@TheTom
TheTom force-pushed the ek/prune-dead-bench-stubs branch from 308f6ef to ee078dd Compare June 22, 2026 21:24
@TheTom
TheTom merged commit f84f760 into dev Jun 22, 2026
2 checks passed
@ekryski
ekryski deleted the ek/prune-dead-bench-stubs branch July 13, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release Hidden from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants