Repository navigation
feat(ironwood): tpu7x 8 logical device enumeration + dual-chiplet CDI/exporter metadata (#21) - #47
Merged
Merged
Conversation
…/exporter dual-chiplet metadata (#21)
…dening - parse_hex_u64: require *end==\0 (fail-closed on trailing junk e.g. 0x75JUNK) - ot_pjrt_client_create: guard zero/absurd pci/chiplet dims, overflow check on pci_funcs*chiplets_per_func, enforce total_logical <=64, double check for mock & live paths - freetpu_cdi.tpu_topology_metadata: fail-closed on non-str/unhashable gens (None/int/list/dict), correct Optional[int] hint, add PEP8 blank line - build_cdi_spec: emit chiplets-per-pkg/hbm for homogeneous shared-iommu-group selectors (Ironwood dual-chiplet gap), keep mixed-generation suppression - No public-roads violations; ASan+UBSan clean; all Python tests pass
Collaborator
Author
Adversarial Hardening & Public-Roads Audit Receipt (
|
…n, Day-1 suite Refs #21, #16 - libopentpu: align tpu7x-4t-single (4 PCI fns x 2 chiplets = 8 logical devices across 4 packages, core_on_chip 0/1, serpentine D2D order) vs tpu7x-4t-2fn (8 fns); keep 0x0075/0x0076 provisional pending Day-1 lspci. - ops/tpu-cdi & ops/tpu-exporter: enforce unified physical/logical package accounting across 1-fn & 2-fn Ironwood layouts, 768 GiB nominal HBM (4x2x96 GiB), and cross-source map collision validation. - llama-cpp-cloudtpu & ci: fix ggml-cloudtpu spmd_chips_raw build/parsing, add standalone & overlay SPMD checks, and add Day-1 regression suite + libfake_pjrt native probe fixture with Python/awk parity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #21, #16 (provisional PCI IDs
0x1ae0:0x0075and0x1ae0:0x0076remain pending live Day-1lspci -nn//dev/vfio/*hardware verification).Summary
libopentpu(ot_pjrt.cpp,ot_device.cpp,ot_vfio.cpp,opentpu.h,opentpu_host_test.cpp): Alignstpu7x-4t/tpu7x-4t-single(4PCI functions ×2chiplets =8logical devices across4packages, serpentine2x2coordinates(0,0,0), (1,0,0), (1,1,0), (0,1,0),core_on_chip0/1, D2D pairs(0,1)..(6,7)) againsttpu7x-4t-2fn(8PCI functions ×1chiplet across4packages).ops/tpu-cdi(freetpu_cdi.py,test_freetpu_cdi.py,README.md): Aligns complete-chip accounting and visibility masks across4 × 1-fndual-chiplet and2-fnIronwood layouts while enforcing cross-source sysfschip_idvs--chip-id-mapcollision checks and preserving distinct 1-to-1 logical maps.ops/tpu-exporter(tpu_exporter.py,test_tpu_exporter.py,README.md): Wires package/chiplet and768 GiBnominal HBM accounting (4 × 2 × 96 GiB) into production metrics and tightensvalidate_chip_id_map/ ownership conflict handling across mixed generations and1-fn/2-fnlayouts.llama-cpp-cloudtpu& CI (.github/workflows/ci.yml,ggml-cloudtpu.cpp,pjrt_runtime.*,test_cloudtpu_host.cpp): Fixescloudtpu_env_config.spmd_chips_rawoverlay build, strict SPMD parsing/bounds validation, standaloneresolve_spmd_chips_specCTest, and overlaytest-backend-opsnegative checks (1x,9,17).tools/ironwood-day1/*,docs/cloud-tpu/*): Hardens Step00/01/02/03Python + POSIXawkparity (sysfs package/NUMA normalization, unlisted DID promotion/clamping,0xff0000class priority, pre-open unsupported-device refusal) and addstest_ironwood_day1.pywith a compiledlibfake_pjrtnative C++ PJRT probe fixture.Proof Block
c24c9a2911b29d9d67eca5540699f07d26d798e3(base:b6ee1688cf6c53ae88ad4b62e85d81952b856bd8)runs/46769640735): GREEN —Clean-Room & OSS Boundary Audit(11s, SUCCESS) &Host Build, Header Checks & Self-Tests(5m25s, SUCCESS; incl. fullllama.cppoverlay + negative SPMD checks).P0gate): PASS (overall: patch is correct (0.95),0findings across2/2passes[0.95, 0.98]).gpt-6.2-astra(ultrafast) Adversarial Loop: Completed 18 full rounds (R1–R18) resolving PJRT4×2pairing, CDI/exporter cross-source collisions, GGMLspmd_chips_raw, and Day-1 Python/POSIXawkparity; all 4 R18 findings fixed & verified locally (R19 halted mid-run at 63,722 tokens on ChatGPT quota exhaustion; exact-headgpt-6.1-solP0 autoreview + GitHub Actions CI subsequently passed cleanly).HEAD=c24c9a2):make -C libopentpu verify-header-host host test: PASS (ALL_HOST_TESTS_PASSED,opentpu_vfio_smoke --mock,OPENTPU_MATMUL_PROOF_PASSED).cmake -S libopenbuenos+ctest: 5/5 Passed;make -C libopenbuenos verify-header-host host test: PASS;cmake -S freetile+ctest: PASS../llama-cpp-cloudtpu/build.sh standalone: 2/2 Passed (cloudtpu_host_tests,pjrt_runtime_guards_tests); C11/C++17 header syntax checks (litebuf_vii_wire.h,openbuenos_shim.c): PASS.python3 ops/tpu-cdi/test_freetpu_cdi.py -v: 34/34 OK.python3 ops/tpu-exporter/test_tpu_exporter.py -v: 26/26 OK.for s in tools/ironwood-day1/*.sh; do bash -n "$s"; done && python3 tools/ironwood-day1/test_ironwood_day1.py -v: 4/4 OK (with compiledlibfake_pjrt).python3 router/freetpu_router.py --self-test --verbose: 197/197 OK + 3 example configs OK;test_select_tree_lut.py: 7/7 OK;tools/{emit_custom_gemm,dgc0_builder,spline_0x640,pack_int4}.pyself-tests: PASS (external-corpusverify_*.pyskipped withoutFREETPU_CORPUS_DIR, matching CI).218files: tracked +test_ironwood_day1.py) &git diff --check: PASS (0 violations).