You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: L3 SceneTestCase — HostCallable as Python DAG + ChipCallable + SubCallable (#514)
Extend SceneTestCase to support L3 distributed tests (multi-chip + SubWorker).
L3 CALLABLE mirrors L2 structurally:
- orchestration: Python DAG function (vs C++ binary for L2)
- callables: list of ChipCallable entries (compiled) + SubCallable entries
(registered), distinguished by field presence
Key additions:
- CallableNamespace: dot-access container for orch functions to access
compiled ChipCallables and registered SubCallable IDs by name, with
keep() for lifetime management of transient objects past drain()
- _compile_chip_callable_from_spec: extracted from compile_chip_callable,
reused by both L2 and L3 compilation paths
- _run_and_validate_l3: builds CallableNamespace, wraps orch in Task,
compares all tensors against golden
- conftest.py L3 branch: registers SubCallable entries from CALLABLE,
reads device_count/num_sub_workers from case config dict
- Rewrites test_l3_dependency.py and test_l3_group.py as SceneTestCase
subclasses with module-level orch + sub functions
Co-authored-by: wcwxy <26245345+ChaoWao@users.noreply.github.com>
0 commit comments