mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 15:28:40 +00:00
New library engine/include/strata/mgpu + engine/src/mgpu, wired in cmake/backends/mgpu.cmake: - DeviceSet: the topology data model (devices, per-pair links, measured figures), the primary-card rule, JSON in and out (schema_version 1), synthetic builders for tests. - DeviceGuard: RAII current-device switching. - probe: PCIe link (sysfs / NVML), copy and memory bandwidth, mapped-host access, per pair the staged route, peer copy where proven (the #2666 host-bridge rule and an exact data test first), and the mapped-flag round trip. CUDA, and HIP through the hip_compat shim. - strata-topo program and `strata topo [--json]` in the Terminal (new subcommand only). - Transport interface: peer copy and host-staged implemented, doorbell a stub for P1; choose_mode is a pure function of the measured link. - Placement planner: plan_experts (cost model of one decode window, f = argmin instead of STRATA_PEER_HOT; Rows / OrderedPartials / SumPartials; N cards) and plan_layers (the layer split's fitted model as a pure function). Unit tests on synthetic pairs and quads. - terminal/tools/mgpu_identity.py: greedy token-hash identity of a family's goldens, one GPU against several. Nothing in the engine calls any of it yet.