TileOPs-Metax/tests
Cao Ying 6e0b507b42
[Refactor][Workloads] Align workloads/ops/ naming with tileops/ops/ layout (#939)
## Summary

Align `workloads/ops/` file naming and directory structure 1:1 with the
post-#928 `tileops/ops/` layout. Pure file-move/rename refactor — no
workload logic changes.

- Drop `_fwd` suffix from mamba, attention, deltanet, and gated_deltanet
workloads
- Rename `mean_pooling_ops.py` to `mean_pooling.py`
- Move attention workloads into `workloads/ops/attention/` subpackage
- Update all imports across the repo

Closes #931

## Test plan

- [x] **AC-1**: All `from workloads.ops.<name>` imports updated for
moved/renamed files — verified by importing all 20 renamed/moved
workload classes and grep confirming zero old import paths remain
- [x] **AC-2**: `python -c "from workloads.ops.attention import ..."`
resolves for all 15 moved attention workload classes
- [x] **AC-3**: Full test suite passes — 2361 passed, 22 skipped, 0
failed (233.76s at commit 4dc54b7)
- [x] **AC-4**: No orphaned files remain after migration — all 11 old
filenames confirmed absent; `mhc_post.py`, `mhc_pre.py` at
`workloads/ops/` root; `nsa_utils.py` at `workloads/` root

## Follow-up

No follow-up issues or suggestions.

---------

Co-authored-by: Ibuki 🍃 — a wind born from Claude Opus <Ibuki-wind@users.noreply.github.com>
2026-04-13 10:44:06 +08:00
..
ops [Refactor][Workloads] Align workloads/ops/ naming with tileops/ops/ layout (#939) 2026-04-13 10:44:06 +08:00
perf [Feat][Perf] Add M6 GPU profile module with H200 profile (#661) 2026-03-25 12:58:10 +08:00
__init__.py [Refactor] Separate benchmark profiling from unit tests (#224) 2026-02-27 16:46:35 +08:00
conftest.py [CI] Add Op-level nightly report with correctness, performance, and regression tracking (#620) 2026-03-23 09:52:37 +08:00
nsa_utils.py [Refactor] Separate benchmark profiling from unit tests (#224) 2026-02-27 16:46:35 +08:00
test_autotune.py [Refactor][Naming] Rename 12 Op classes to match manifest keys (#883) 2026-04-10 18:22:00 +08:00
test_base.py [Refactor][Benchmark] Detach benchmarks from tests via workloads layer (#787) 2026-04-05 11:38:51 +08:00
test_benchmark_record.py [Fix][Benchmark] Record kernel config for all Op patterns in benchmark report (#820) 2026-04-07 16:07:30 +08:00
test_compile.py [Refactor] Align kernels/tests/benchmarks structure with ops layout (#928) 2026-04-12 23:24:03 +08:00
test_elementwise_caching_autotune.py [Perf][Elementwise] Generalize kernel caching and autotune to all kernel families (#560) 2026-03-18 20:11:41 +08:00
test_elementwise_compile.py [Feat][Elementwise] Register elementwise ops for torch.compile (#482) 2026-03-13 22:47:01 +08:00
test_elementwise_config_dtype.py [Fix][Elementwise] Correct default_config npt and standardize output_dtype (#609) 2026-03-23 16:19:55 +08:00
test_elementwise_fp8.py [Refactor][Elementwise] Extract shared _wrap_fp8_accumulation helper for fp8 kernels (#535) 2026-03-17 15:47:08 +08:00
test_elementwise_independent_fp8.py [Fix][Elementwise] Clamp scalar literals to dtype range in kernel layer (#598) 2026-03-19 17:28:40 +08:00
test_elementwise_strategy_bench.py [Enhancement][Elementwise] Deploy strategy-aware npt defaults for fp16/bf16 (#562) 2026-03-19 18:44:46 +08:00
test_gemm_torch.py [Test][CI] Explicit test tiers and CI selection (#395) 2026-03-10 17:53:49 +08:00
test_gemm_triton.py [Test][CI] Explicit test tiers and CI selection (#395) 2026-03-10 17:53:49 +08:00
test_grouped_gemm_torch.py [Test][CI] Explicit test tiers and CI selection (#395) 2026-03-10 17:53:49 +08:00
test_grouped_gemm_triton.py [Test][CI] Explicit test tiers and CI selection (#395) 2026-03-10 17:53:49 +08:00
test_ops_manifest.py [Refactor][Manifest] Rename 12 abbreviated attention/MoE manifest keys to descriptive names (#880) 2026-04-10 10:34:17 +08:00
test_parametric_unary_base.py [Refactor][Elementwise] Extract shared base for parametric kernels (#611) 2026-03-23 16:53:18 +08:00
test_reduction_init_files.py [Refactor][Naming] Rename Op/Kernel classes to match manifest keys (#873) 2026-04-09 19:57:59 +08:00
test_strategy_npt_defaults.py [Enhancement][Elementwise] Deploy strategy-aware npt defaults for fp16/bf16 (#562) 2026-03-19 18:44:46 +08:00
test_tier_validation.py [Test][TestInfra] Relax smoke param constraint to at-least-one with ordering enforcement (#557) 2026-03-17 20:44:03 +08:00
test_validate_manifest.py [Refactor][Benchmark] Extract ManifestBenchmark base class and shared helpers (#915) 2026-04-12 12:28:43 +08:00