TileOPs-Metax/tileops/kernels/gla
Cao Ying 6a61ba14d9
[Refactor] Align kernels/tests/benchmarks structure with ops layout (#928)
## Summary

Align `kernels/`, `tests/`, and `benchmarks/` file structure 1:1 with
the post-#890 `ops/` layout. Eliminates unnecessary directory nesting
and consolidates trivially small files.

**Changes (166 files, 11 commits):**
1. Consolidate attention kernel directories into `kernels/attention/`
2. Rename `kernels/conv/` to `kernels/convolution/`
3. Drop `_fwd` suffix from mamba kernel filenames
4. Flatten `kernels/norm/` subdirectories
5. Flatten `kernels/reduction/` subdirectories
6. Flatten single-file kernel directories
7. Consolidate tests and benchmarks to mirror kernel layout
8. Delete stale `CHANGELOG.md`

Closes #924

## Test plan

- [x] **AC-1**: All `__init__.py`, `ops_manifest.yaml`, and internal
imports updated for moved files -- Manifest path audit: checked 208
paths, 0 missing. Runtime validation passed.
- [x] **AC-2**: `from tileops.kernels import ...` resolves for all moved
kernels -- 73 symbols exported and resolved with 0 failures.
- [x] **AC-3**: Full test suite passes -- `pytest tests` -> 2361 passed,
22 skipped, 0 failed (236.78s).
- [x] **AC-4**: No orphaned directories remain after migration -- `find`
produced no empty directories.

## Follow-up

- #929 — Update stale kernel path reference in docs/manifest.md (doc
drift from this refactor)

---------

Co-authored-by: Ibuki 🍃 — a wind born from Claude Opus <Ibuki-wind@users.noreply.github.com>
2026-04-12 23:24:03 +08:00
..
__init__.py [Refactor] Align kernels/tests/benchmarks structure with ops layout (#928) 2026-04-12 23:24:03 +08:00
gla_bwd.py [Refactor] Align kernels/tests/benchmarks structure with ops layout (#928) 2026-04-12 23:24:03 +08:00
gla_fwd.py [Refactor] Align kernels/tests/benchmarks structure with ops layout (#928) 2026-04-12 23:24:03 +08:00