Commit Graph

10 Commits

Author SHA1 Message Date
yutianyu a2cda3fda7 feat: add more shared test cases
Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu dcf4d25896 refactor: split runtime internals and testing package
Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu 1c5b1db200 refactor: consolidate benchmark entrypoint
Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu aec1073394 refactor: restructure Python package layout
Group modules by responsibility:

- _runtime/: internal C ABI layer (loader, ctypes_bindings,
  prepared, tensor_view); underscore prefix signals non-public API
- testing/: test utilities split by concern (assertions, benchmark,
  profiler) instead of mixed in top-level files
- ops/__init__.py: per-operator registration; adding a new operator
  only requires one line here, not touching the top-level __init__
- operator_runtime/__init__.py: thin gateway that re-exports from ops/

External import paths for tests are unchanged:
operator_runtime.testing still exports require_cuda, assert_close,
cuda_time_ms, PerformanceResult

Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu fa2608e9b6 build: remove YAML-driven operator registration
Replace the YAML manifest + Python code-generation pipeline with
CMake file(GLOB_RECURSE) auto-discovery. Operators are now registered
by directory convention (ops/<name>/nvidia/*.cu) rather than by
declaring sources and symbols in operator.yaml.

Deleted: ops/*/operator.yaml, cmake/GenerateOperators.cmake,
tools/generate_operator_artifacts.py, tools/operator_schema.yaml,
tools/validate_operator_manifest.py, operator_registry.py,
tests/test_manifest_contract.py

Modified: ops/CMakeLists.txt uses GLOB_RECURSE, requirements.txt
drops pyyaml

Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu 1759575ea7 refactor: organize per-operator test runners
Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu 246e21f3d1 feat: unify example backends and shared test cases
Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu 347421d28b refactor: reorganize operator benchmarks
Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu fb59a60034 test: cover TileLang copy templates
Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00
yutianyu 449075499b test: add runtime correctness and benchmark coverage
Co-authored-by: wawahejun <hejunlbbc@gmail.com>
2026-05-05 16:50:18 +08:00