Skip to content

core: recognize all known Ampere and Blackwell GPU platforms and unify Orbit revision matching - #598

Merged
lukealonso merged 1 commit into
mainfrom
feat/all-ampere-blackwell-platforms
Nov 29, 2026
Merged

lukealonso merged 1 commit into
mainfrom
feat/all-ampere-blackwell-platforms

Conversation

@lukealonso

Copy link
Copy Markdown
Collaborator

Why

Automatic Hub revision detection (flare/src/hardware.rs), core export naming (heliopause/src/export/capture.rs), and Orbit placement previously recognized only six platforms (ga102, ga10b, gb10, gb202, gb206, gb300) and a partial subset of their PCI device IDs. Any other Ampere or Blackwell GPU — including GB203 (RTX PRO 4500 Blackwell 0x2c31, RTX 5080, RTX 5070 Ti), GB205 (RTX 5070), GB207 (RTX 5050), GB100/GB102 (B200/B100/GB200), GB10B (Jetson AGX Thor), GA100 (A100/A30), GA102 workstation cards (RTX A6000, A40, A10), and GA103/GA104/GA106/GA107 — failed export and flare run with an unsupported PCI ID error, requiring piecemeal PRs per chip.

Separately, Orbit kept a drifted private copy of the PCI table in flare-cli/src/orbit/gpu.rs and derived a core's required revision in flare-cli/src/orbit/controller.rs::describe only from compute capability, which collapses distinct dies sharing a compute capability (such as SM 12.0 GB202/GB203/GB205/GB206/GB207 and SM 8.6 GA102/GA103/GA104/GA106/GA107) onto one revision string.

Supersedes #469 on current main (92a5b888), preserving its Orbit single-table and signed-identity core_revision placement changes (with credit) and extending platform coverage to all known Ampere and Blackwell dies in one change.

What exactly changed

  • helios/src/core/naming.rs:
    • Expands PLATFORMS from 6 to 19 entries covering all known Ampere (ga100, ga102, ga103, ga104, ga106, ga107, ga10b) and Blackwell (gb10, gb100, gb102, gb10b, gb112, gb120, gb202, gb203, gb205, gb206, gb207, gb300) GPU dies using PCI device IDs from pciutils/pciids (also completing GA102_DEVICES, GB10_DEVICES, GB202_DEVICES, and GB300_DEVICES).
    • Replaces the chained if branches in platform_from_pci with a single PCI_PLATFORMS dispatch slice, and adds (11, 0) => Some("gb10b") (Jetson AGX Thor) to platform_from_capability.
    • Updates pci_ids_select_the_platform_identifier to verify every table maps into PLATFORMS, no PCI ID is duplicated across tables, non-NVIDIA vendor IDs return None, representative IDs across every Ampere and Blackwell die resolve accurately, and Turing/Ada/Hopper/unlisted IDs remain None.
  • flare-cli/src/orbit/{gpu,controller,plan}.rs:
    • Deletes Orbit's private platform() PCI table so gpu::revision delegates directly to naming::platform_from_pci, falling back to capability_revision (which delegates integrated Tegra capabilities to naming::platform_from_capability, without mapping SM 8.6 to ga102 since SM 8.6 spans five dies).
    • Adds gpu::core_revision and updates controller::describe to read authorized.identity().map_err(|e| e.to_string())?.hardware so placement requires the platform recorded in a core's signed device identity, keeping capability_revision only for legacy cores that record no identity.
  • flare/src/catalog.rs:
    • Builds the multi-branch fixture in published_build_match_uses_all_platform_branches dynamically from PLATFORMS and explicitly asserts prefix separation across gb10 vs gb100/gb102/gb10b and gb202 vs gb203.
  • flare-cli/src/cli.rs, docs/cli-design.md, docs/core-format-design.md, docs/orbit.md:
    • Updates revision detection documentation, the gb* -tp1 404 retry rule, and Orbit's signed-identity placement behavior.

Claimed benefit

Every known Ampere and Blackwell GPU resolves to its own die-specific platform identifier across hardware detection, Hub revision selection, core export naming, and Orbit placement through one shared table, eliminating piecemeal per-chip additions while preserving all existing platform names (ga102, ga10b, gb10, gb202, gb206, gb300) and legacy core compatibility.

Supporting evidence and limitations

Validated at commit f33075fc (rebased onto main 92a5b888):

  • cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --lib -- core::: 487 passed, 0 failed, 11 ignored (including all 6 core::naming::tests::*).
  • cargo test --release --manifest-path flare/Cargo.toml: 234 unit tests passed (4 ignored), 7 packed_canonical_download passed, 1 reference_workflows passed (including catalog::tests::published_build_match_uses_all_platform_branches).
  • cargo test --release --manifest-path flare-cli/Cargo.toml: 24 integration tests passed (cache_commands: 7, cli: 6, inspect: 4, unverified_payload: 7); 201 of 202 unit tests passed (3 ignored), with 1 pre-existing unrelated BrokenPipe failure in distribution::tests::source_waits_for_receiver_file_verification.
  • cargo test --release --manifest-path heliopause/Cargo.toml --lib: 211 passed, 0 failed, 6 ignored.
  • Live NVML hardware check on RTX PRO 6000 Blackwell Max-Q (0x2bb4): flare hardware-revision 1 prints gb202.

Limitations:

  • flare, flare-cli, and heliopause ran without --locked locally because base 92a5b888 bumped deepseek-recipe in helios/Cargo.toml without updating those crates' Cargo.lock files (all lockfiles remain untouched in this PR).
  • Only 0x2bb4 (GB202) hardware was exercised live; the remaining Ampere and Blackwell PCI IDs were verified against pciutils/pciids and unit tests.
  • Repositories that do not yet publish a branch for a newly recognized platform return HTTP 404 until builds for that platform are published; --revision remains the explicit Hub override for flare download/flare run, while Orbit placement matches the resolved core's signed platform identity exactly.

Discord: no username provided

…y Orbit revision matching

Why:
Automatic Hub revision detection (`flare/src/hardware.rs`), core export naming
(`heliopause/src/export/capture.rs`), and Orbit placement previously recognized
only six platforms (`ga102`, `ga10b`, `gb10`, `gb202`, `gb206`, `gb300`) and a
subset of their PCI device IDs. Any other Ampere or Blackwell GPU — such as
GB203 (RTX PRO 4500 Blackwell `0x2c31`, RTX 5080, RTX 5070 Ti), GB205 (RTX 5070),
GB207 (RTX 5050), GB100/GB102 (B200/B100/GB200), GB10B (Jetson AGX Thor),
GA100 (A100/A30), GA102 workstation cards (RTX A6000, A40, A10), or GA103/GA104/
GA106/GA107 — failed export and `flare run` with an unsupported PCI ID error,
forcing piecemeal one-die PRs. Separately, Orbit maintained a drifted private
copy of the PCI table in `flare-cli/src/orbit/gpu.rs` and derived a core's
required revision in `controller.rs::describe` only from compute capability,
which conflates distinct dies sharing a compute capability (for example SM 12.0
GB202/GB203/GB205/GB206/GB207 and SM 8.6 GA102/GA103/GA104/GA106/GA107).

What exactly changed:
- `helios/src/core/naming.rs`: expands `PLATFORMS` from 6 to 19 entries covering
  all known Ampere (`ga100`, `ga102`, `ga103`, `ga104`, `ga106`, `ga107`,
  `ga10b`) and Blackwell (`gb10`, `gb100`, `gb102`, `gb10b`, `gb112`, `gb120`,
  `gb202`, `gb203`, `gb205`, `gb206`, `gb207`, `gb300`) GPU dies using PCI
  device IDs from `pciutils/pciids` (also completing `GA102_DEVICES`,
  `GB10_DEVICES`, `GB202_DEVICES`, and `GB300_DEVICES`). Replaces the chained
  `if` checks in `platform_from_pci` with a single `PCI_PLATFORMS` dispatch
  slice, adds `(11, 0) => Some("gb10b")` (Jetson AGX Thor) to
  `platform_from_capability`, and tests disjointness, non-NVIDIA vendor
  rejection, and representative IDs across every die.
- `flare-cli/src/orbit/{gpu,controller,plan}.rs`: deletes Orbit's private PCI
  ID table so `gpu::revision` delegates directly to `naming::platform_from_pci`
  with `capability_revision` (which now delegates integrated capabilities to
  `naming::platform_from_capability`) as fallback. Adds `gpu::core_revision`
  and updates `controller::describe` to read `authorized.identity()?.hardware`
  so placement matches a core's signed platform identity instead of collapsing
  distinct dies onto one compute-capability name, keeping `capability_revision`
  only for legacy cores without a device identity.
- `flare/src/catalog.rs`: builds the multi-branch fixture in
  `published_build_match_uses_all_platform_branches` from `PLATFORMS` and tests
  prefix separation across `gb10` vs `gb100`/`gb102`/`gb10b` and `gb202` vs
  `gb203`.
- `flare-cli/src/cli.rs`, `docs/cli-design.md`, `docs/core-format-design.md`,
  `docs/orbit.md`: updates platform revision documentation, the `gb*` `-tp1`
  404 retry rule, and Orbit placement semantics.

Claimed benefit:
Every known Ampere and Blackwell GPU resolves to its own die-specific platform
identifier across hardware detection, Hub revision selection, core export
naming, and Orbit placement through one shared table, preserving all existing
platform labels (`ga102`, `ga10b`, `gb10`, `gb202`, `gb206`, `gb300`) and
legacy core compatibility.

Supporting evidence and limitations:
- `cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --lib -- core::`: 487 passed, 0 failed, 11 ignored (including `core::naming::tests::*`).
- `cargo test --release --manifest-path flare/Cargo.toml`: 234 unit tests passed (4 ignored), 7 `packed_canonical_download` passed, 1 `reference_workflows` passed.
- `cargo test --release --manifest-path flare-cli/Cargo.toml`: 24 integration tests passed (`cache_commands`: 7, `cli`: 6, `inspect`: 4, `unverified_payload`: 7); 201 of 202 unit tests passed (3 ignored), with 1 pre-existing unrelated `BrokenPipe` failure in `distribution::tests::source_waits_for_receiver_file_verification`.
- `cargo test --release --manifest-path heliopause/Cargo.toml --lib`: 211 passed, 0 failed, 6 ignored.
- Live hardware check on RTX PRO 6000 Blackwell Max-Q (`0x2bb4`): `flare hardware-revision 1` prints `gb202`.
- Limitations: `flare`, `flare-cli`, and `heliopause` ran without `--locked` locally because base commit `92a5b888` bumped `deepseek-recipe` in `helios/Cargo.toml` without updating their lockfiles (lockfiles left untouched here). Live NVML hardware was exercised only on `0x2bb4` (GB202); the other PCI IDs were verified against `pciutils/pciids` and unit tests. Repositories without a published branch for a newly recognized platform require an explicit `--revision` override until builds for that platform are published, and Orbit placement matches the core's signed platform identity exactly.

Co-Authored-By: Alexander Korolev <alexander.korolev.germany@gmail.com>
Design-Signed-Off-By: Antigravity (Gemini); design-review=c3a9
@lukealonso
lukealonso merged commit fb32cd3 into main Nov 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant