interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / evidence / AMD-GFX942-HOST-20261112T210312Z / README.md

166 lines · 9154 bytes Raw Blame History Source

gfx942 HSA code object: host-only receipt

This receipt exercises the seeded-Omega FP32 vadd writer, not AMD hardware or Qwen serving. Source base: CUDApp Radicle rad:z4RxD8vXigmWg61nM8miQ8DVPAXEP, main a6dee65e00c3d4bbda32a7d63c9e5a0126a92a9a. Branch: amdserve/gfx942-hsaco. The commit containing this receipt is local only. Nothing was pushed, published, installed or landed.

Inputs and replay

inputs.sha256 is generated from the producer, table, oracle, gate, unchanged loader and unchanged multitarget gate. The compiler is the repository's existing pin:

Commands below ran from the lane's CUDApp root on Linux AArch64. $HOME is the operator's home; E=evidence/AMD-GFX942-HOST-20261112T210312Z and OMC=$HOME/work/hive/amdserve/AmdGfx942/pin/omc expand to absolute paths. The CPU pool lock was held only for each command, with a 600-second deadline and nice on cores 10,11.

Before changing source (exit 0):

timeout 600 flock -o "$HOME/handoffs/hive/queen/pool-10-11.lock" taskset -c 10,11 nice -n 10 \
  env MT_OUT="$HOME/work/hive/amdserve/AmdGfx942/runs/mt-before" \
  sh tests/multitarget/run.sh "$OMC"

Final AMD gate (exit 0; complete module, not selected assertions):

timeout 600 flock -o "$HOME/handoffs/hive/queen/pool-10-11.lock" taskset -c 10,11 nice -n 10 \
  env AMD_OUT="$PWD/$E/gate" sh tests/amd/run.sh "$OMC" > "$E/gate.log" 2>&1

After changing source (exit 0, same compiler and arguments as before):

timeout 600 flock -o "$HOME/handoffs/hive/queen/pool-10-11.lock" taskset -c 10,11 nice -n 10 \
  env MT_OUT="$HOME/work/hive/amdserve/AmdGfx942/runs/mt-after" \
  sh tests/multitarget/run.sh "$OMC"

The gate itself records compiler/source/output hashes, tool versions, both producer builds, both emitted objects, oracle assembly output, extracted sections, disassembly, ELF/metadata inspection and every negative control under gate/. Its final line is:

AMD-GFX942-HOST PASS pass=14 fail=0 hardware=NOT_RUN

Both before and after multitarget final lines are:

MULTITARGET PASS pass=22 fail=0 not_run=4

The two multitarget logs here are portable derivatives: only the exact home prefix was replaced with literal $HOME. Unchanged original logs/outputs remain in the lane's sibling runs/ directory; multitarget-original.sha256 records the original log hashes. No historical receipt was edited.

Missing-tool preflight was exercised separately with a PATH directory containing only symlinks to /usr/bin/uname and /usr/bin/sha256sum (the temporary directory was then removed):

PATH="$PWD/../runs/missing-tools" /bin/sh tests/amd/run.sh "$OMC"

Exit 3, NOT_RUN missing tool llvm-mc-18, saved as missing-tool.log. This preflight did not compile or run a producer. Missing mandatory tools do not yield a successful gate.

What the host gate established

Control lines in gate.log:

PASS CONTROL instruction-table flipped bit CAUGHT code mismatch
PASS control-wrong-mach exit=33 LOAD REFUSE AMDGPU_HSACO code=33 reason=e_flags mach does not match the requested gfx target
PASS control-truncated exit=34 LOAD REFUSE AMDGPU_HSACO code=34 reason=no well-formed AMDGPU NT_AMDGPU_METADATA note in a PT_NOTE segment
PASS CONTROL wrong compiler digest CAUGHT exit=69 before compiler/producer/output setup

The flipped-table control changes the low bit of the v_add_f32 source encoding (260 -> 261), then runs the real producer. Wrong mach and truncation refuse with the loader's documented codes. The wrong compiler is an executable control, not merely a changed expected checksum: it is refused before execution, compilation or output-directory creation.

Limits and surprises

All AMD hardware rows remain NOT_RUN, including MI300X dispatch, runtime/ROCr interoperability, FP32 outputs, n=0/tail/boundary vectors, timing/throughput and Qwen execution. No GPU was opened, no service changed, no sudo used and port 18091 was untouched. The existing target-status table was not changed and AMD is not promoted to SUPPORTED.

Independent constant checks (MODELED, not hardware measurements)

Mounted Wolfram setup checks: Integrate[x^2,{x,0,1}] -> 1/3, sqrt(27)/2 -> (3 sqrt(3))/2.

Wolfram Language query:

{IntegerString[BitOr[1,BitShiftLeft[2,6],BitShiftLeft[3,16],BitShiftLeft[3,18],BitShiftLeft[1,21],BitShiftLeft[1,23]],16],
 IntegerString[BitOr[BitShiftLeft[2,1],BitShiftLeft[1,7]],16],12/4-1,BitXor[260,261],
 Table[{g,Mod[4 g,2^32],Quotient[g,2^30],Mod[4 g,2^32]+2^32 Quotient[g,2^30],4 g},
       {g,{0,2^30-1,2^30,2^32-1}}]}

Result (resource bit fields dimensionless; address offsets in bytes):

{"af0081", "84", 2, 1,
 {{0,0,0,0,0},
  {1073741823,4294967292,0,4294967292,4294967292},
  {1073741824,0,1,4294967296,4294967296},
  {4294967295,4294967292,3,17179869180,17179869180}}}

Scope, provenance and guides

PROVENANCE.md records each public LLVM source and the copied leftover oracle. The unmerged gfx1100 lab at CUDApp 268a2e9d was read-only prior art; none of its code/words/constants was reused. llvm-sources.sha256 records downloaded source-document identities (verification/navigation only, not build inputs). FILES.tsv is the generated file-size inventory; SHA256SUMS covers the receipt and every artifact except itself.

No omega-harness guide statement was made untrue: no language/pin/host-word/bridge change occurred. The “CUDApp portable backend” section's hardware NOT_RUN/PLANNED target status and the gfx1151 LLVM-oracle statement about main remain true. This new gfx942 writer is a local, unmerged host slice. The existing guide says not to call a vendor supported from host evidence; this receipt does not.