REA GPU code-object notes (unofficial)
REA can answer which GPU targets and kernel declarations a local artifact carries — CUDA fatbins/CUBIN/PTX and Clang HIP/CCOB bundles included — as a static inventory. Prefer gpu-code-objects.md.
Minimal path
rea inspect-gpu-code-objects /absolute/path/library.so \
--analysis kernels --targets '["sm_100"]' --detail summary \
--view '{"collection":"kernels","names":["kernel_name"]}' \
--evidence_output /analysis/library-gpu.evidence.json --json
MCP uses the same service contracts with absolute path, optional analysis / targets / view.
Mental model
- Inventory
targetsfirst; decode kernels only for selected payloads. - Distinguish inventory
targetfrom independently observedpayload_target. - Empty kernel pages prove no matching retained fact — not absence inside unexamined payloads.
- Resource budgets (buffers, payload work, page size) fail closed with known facts preserved where documented.
Legal note
GPU code objects may still be proprietary IP. Inspect only artifacts you are authorized to examine; do not use this path to bypass licensing on shipping GPU apps.
RepoRead is unofficial. Prefer gpu-code-objects.md.
FAQ
Does REA run kernels or call nvcc/rocm tools?
No. Upstream states the capability reads ELF/PE sections and bundles without executing the artifact and without invoking CUDA/ROCm tools. SASS disassembly and host launch correlation remain outside coverage.
What collections exist?
Start with view collection targets for inventory, then objects / kernels (and retained ptx text via inspect_analysis_view) as documented upstream.
CLI example?
rea inspect-gpu-code-objects /artifacts/library.so --analysis kernels --targets '["sm_100"]' --detail summary --view '{"collection":"kernels"}' --evidence_output /analysis/library-gpu.evidence.json --json
Compressed fatbins?
Docs support CUDA raw LZ4/Zstd and CCOB zlib/Zstd with length checks; unknown codecs retain declarations with explicit limitations rather than pretending to decode.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).