Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
ce2fb86
feat(gpu): inspect static CUDA and HIP code objects
gensokyo-dev Oct 21, 2026
828cdaa
fix(gpu): bound metadata expansion and preserve partial observations
gensokyo-dev Oct 21, 2026
8f9f70c
fix(gpu): validate retained text and complete codec input
gensokyo-dev Oct 21, 2026
cbd455d
fix(gpu): register catalog metadata and package notices
gensokyo-dev Oct 21, 2026
282e109
docs(gpu): record producer verification and MCP task costs
gensokyo-dev Oct 21, 2026
9bf50ef
fix(gpu): discover standalone AMD targets before selection
gensokyo-dev Oct 21, 2026
64bc001
docs(gpu): retain review reproductions and AMD selection evidence
gensokyo-dev Oct 21, 2026
5e2992d
fix(gpu): bound metadata work and preserve partial coverage
gensokyo-dev Oct 21, 2026
a4292d5
fix(gpu): preserve register declaration semantics and document bounds
gensokyo-dev Oct 21, 2026
3e2677f
docs(gpu): retain bounded parser and independent PTX verification
gensokyo-dev Oct 21, 2026
a75b44b
fix(gpu): retain target disagreements and discover HIP targets
gensokyo-dev Oct 21, 2026
21eaa0d
fix(gpu): qualify CUDA target flags by ELF ABI
gensokyo-dev Oct 21, 2026
f5be46f
fix(gpu): expose unresolved target discovery as partial
gensokyo-dev Oct 21, 2026
9767391
docs(gpu): retain final target and ABI qualification
gensokyo-dev Oct 21, 2026
893e04d
fix(gpu): reserve payload work before reads and retain PTX uncertainty
gensokyo-dev Oct 21, 2026
4f537f9
docs(gpu): qualify payload admission and partial PTX facts
gensokyo-dev Oct 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(gpu): retain review reproductions and AMD selection evidence
  • Loading branch information
gensokyo-dev committed Oct 21, 2026
commit 64bc0018714a840bf7777731e5e4c01888d40f06
164 changes: 163 additions & 1 deletion docs/verification/gpu-code-objects-2026-10-21.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,5 +431,167 @@
"Tokenx estimates, not model billing. Full SDK replies include text and structured representations; initialization and JSON-RPC envelopes omitted.",
"Earlier all-target complete MCP response exceeded the existing transport guard and did not complete. It is not a baseline. Both completed comparisons select sm_100.",
"A prior combined focused run timed out two schema cases at 30 seconds on two CPUs; the isolated schema suite passed 15/15 without changing timeouts."
]
],
"review_followup": {
"source_revision": "09c6062cbd70692e6eb4c7cf53b7a10ba886aeb6",
"source_tree": "8f1db7308f83065ce8415f7ffc5d298b4879ec22",
"before": {
"source_revision": "36b87ed45912d0d53191ae3611b258f140019ab9",
"real_gfx900_matching_selection": {
"exit_code": 0,
"target": null,
"kernel_count": 0
},
"malformed_targets_cli_issue_path": ["view"]
},
"after": {
"real_cli": {
"calls": [
{
"kind": "inventory",
"command": [
"node",
"scripts/rea.mjs",
"inspect-gpu-code-objects",
"/home/yann/yann/rea-5345-lab/fixtures/add-gfx900.hsaco",
"--detail",
"complete",
"--json"
],
"exit_code": 0,
"sha256": "0b1c25b301a7ded9fcac09968f5e140940db16df395867496845623e3c38a672",
"target": "amdgcn-amd-amdhsa--gfx900",
"kernel_count": 0
},
{
"kind": "selected",
"command": [
"node",
"scripts/rea.mjs",
"inspect-gpu-code-objects",
"/home/yann/yann/rea-5345-lab/fixtures/add-gfx900.hsaco",
"--detail",
"complete",
"--json",
"--analysis",
"kernels",
"--targets",
"[\"amdgcn-amd-amdhsa--gfx900\"]"
],
"exit_code": 0,
"sha256": "0b1c25b301a7ded9fcac09968f5e140940db16df395867496845623e3c38a672",
"target": "amdgcn-amd-amdhsa--gfx900",
"kernel_count": 1
},
{
"kind": "unselected",
"command": [
"node",
"scripts/rea.mjs",
"inspect-gpu-code-objects",
"/home/yann/yann/rea-5345-lab/fixtures/add-gfx900.hsaco",
"--detail",
"complete",
"--json",
"--analysis",
"kernels",
"--targets",
"[\"amdgcn-amd-amdhsa--gfx1100\"]"
],
"exit_code": 0,
"sha256": "0b1c25b301a7ded9fcac09968f5e140940db16df395867496845623e3c38a672",
"target": "amdgcn-amd-amdhsa--gfx900",
"kernel_count": 0
}
],
"oracle": "Clang 14 producer source and independent llvm-readelf metadata output; no GPU execution"
},
"resource_receipt": {
"command": [
"taskset",
"-c",
"0,1",
"python3",
"/home/yann/yann/rea-5345-lab/review-amd-cli.py"
],
"exit_code": 0,
"wall_s": 5.9736752989992965,
"cpu_s": 6.950947,
"cpu_accounting": "payload family wait rusage delta; inherited shell child usage excluded",
"peak_family_rss_bytes": 383623168,
"sample_ms": 20,
"guard_stop": null
},
"focused_resource_receipt": {
"command": [
"taskset",
"-c",
"0,1",
"npm",
"run",
"test:focused",
"--",
"tests/acceptance/gpuCodeObjectsCli.test.ts",
"tests/boundary/gpu/codeObjects.test.ts",
"tests/process-global/gpuFileLifetime.test.ts",
"src/gpu/AmdGpuMetadata.test.ts"
],
"exit_code": 0,
"wall_s": 83.7720508450002,
"cpu_s": 138.813059,
"cpu_accounting": "payload family wait rusage delta; inherited shell child usage excluded",
"peak_family_rss_bytes": 3452530688,
"sample_ms": 20,
"guard_stop": null
},
"focused_tests": {
"files": 4,
"passed": 35
},
"catalog_resource_receipt": {
"command": [
"taskset",
"-c",
"0,1",
"npm",
"run",
"test:focused",
"--",
"tests/boundary/filesystem/productCatalog.test.ts"
],
"exit_code": 0,
"wall_s": 74.92947246800031,
"cpu_s": 126.30404600000001,
"cpu_accounting": "payload family wait rusage delta; inherited shell child usage excluded",
"peak_family_rss_bytes": 3469959168,
"sample_ms": 20,
"guard_stop": null
},
"catalog_tests": {
"files": 1,
"passed": 10
},
"nine_real_producer_artifacts": "complete payload coverage; rerun after review fixes",
"producer_resource_receipt": {
"command": [
"taskset",
"-c",
"0,1",
"node",
"--import",
"tsx",
"/home/yann/yann/rea-5345-lab/probe.mts"
],
"exit_code": 0,
"wall_s": 0.5241675279976334,
"cpu_s": 0.6436419999999999,
"cpu_accounting": "payload family wait rusage delta; inherited shell child usage excluded",
"peak_family_rss_bytes": 124952576,
"sample_ms": 20,
"guard_stop": null
}
},
"ownership": "Bounded AMD ELF note parser produces target plus parsed kernel declarations once; inventory discovers target before filtering and selected projection reuses prepared notes. The 8 MiB budget applies to aggregate encoded source-note bytes, before their reads; parsed JS representation expands. Prepared notes live only for one payload inspection. CLI parses each named JSON option and preserves the full parsed input for schema diagnostics.",
"performance_scope": "The paired nvJPEG MCP measurements above remain pinned to their original qualified runtime; this follow-up does not claim a new CUDA speed/memory result."
}
}
28 changes: 28 additions & 0 deletions docs/verification/gpu-code-objects-2026-10-21.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,31 @@ descendants every 20 ms and is approximate; the observer is excluded.
Retention caches are scoped to immutable Evidence through a WeakMap; historical
pages do not reopen files. Live inspections always stream a fresh full-file hash
and revalidate the descriptor/path. No live-state freshness cache is claimed.

## Review follow-up

At `36b87ed`, the public CLI reproduced both review findings: selecting
`amdgcn-amd-amdhsa--gfx900` in the real Clang-produced standalone object returned
zero kernels with an unknown target, and malformed `--targets` JSON was reported
at the `view` issue path.

At `09c6062`, AMD ELF note parsing owns target discovery and prepared kernel
declarations. Inventory reads those bounded notes before selection; selected
analysis reuses them without decoding MessagePack twice. Aggregate encoded note
bytes are limited to 8 MiB before reads, with existing per-value/depth limits;
the parsed JavaScript representation expands beyond that source-byte count.
The prepared declarations live only for the current payload inspection. Named
CLI option parsing also supplies the actual parsed input to schema diagnostics.

The real public CLI now inventories the gfx900 target, returns the producer's
one kernel/two parameters/12-byte parameter area/6 SGPR/2 VGPR when selected,
and preserves an unselected object without kernel facts for a different target.
Those three complete CLI tasks together took 5.974 seconds / 6.951 CPU seconds /
383,623,168 sampled peak family RSS bytes, including the Python task driver.
All nine producer artifacts were reread with complete payload coverage.

The review regression run passed 35 cases in four files, including public CLI,
MCP, metadata capacity and cleanup. A further 10 product-catalog cases passed
after adding the missing CLI `analysis` option description identified by CI.
The earlier paired nvJPEG measurements remain pinned to their original runtime;
these follow-ups do not establish a new CUDA performance result.