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 / api-attn-rest-20261106 / README.md

69 lines · 6826 bytes Raw Blame History Source

API artifact, decode scalars and matmul oracle residual migration

IMPLEMENTED and EXERCISED on the host. Chip qualification NOT_RUN. Not merged or deployed.

Base: feat/api-views-attn-om, c1fec738fb3dfe4fd48bf9115a19ca9d4d3d6367 (#332). Unit registration is the first commit (3683822d). Public function signatures, artifact admission/trust policy, and inherited av_ropegen are unchanged.

Source and dependency pins

First-party computation: om/api/attn_{art,scalar,oracle}.om with one exported wrapper root per generated unit. Generated bridge C is committed, not a second hand-written implementation.

C artifact computations remain only behind default-OFF CUDAPP_MIGRATION_PENDING_C_NATIVE_ARTIFACT_REST. C double matmul oracle remains only behind default-OFF CUDAPP_MIGRATION_PENDING_C_MATMUL_ORACLE_GUARD. The decode path has no C computation fallback. All Omega references are strong.

The bridge does not accept f64 arrays, so the double accumulator is transported as ulong bits with typed f64 arithmetic inside Omega. Accumulation order, finite/nonfinite comparisons, max-error float conversion and mismatch threshold are unchanged.

Commands actually run

All tests below ran with the device-hiding prefix:

bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10
Command after prefixrcObserved final result
env OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc OMEGA_BRIDGE=/tmp/bridge-73-apiviews python3 tests/api_rest_check.py --mutants --out build/api-rest-check0API-REST-CHECK PASS
make -j3 test-native-artifact-manifest test-native-artifact test-gpu-matmul-api test-gpu-decode-attn test-gpu-decode-attn2560gpu_decode_attn_test: 12 checks, 0 failed: PASS

commands.json records the final differential run, individual commands, return codes and output; expected failing links/mutants are negative controls, not unexplained failures. family-gates.log records the focused family invocation: manifest 70 checks; artifact export 47 checks; artifact shape exports PASS; matmul API 178 checks and r4 receipt 7 checks; decode host 43 checks and simulator 12 checks; decode256 host 61 checks and simulator 14 checks; max-position 5 cases and 7 killed controls. All reported zero failures. The matmul API gate provides a host-only tier, not a simulator mode; this receipt does not claim a nonexistent matmul API simulator tier.

Paths in committed logs are normalized from /home/drakestapleton to ~. No binary, cubin, PTX or disassembly is committed.

Differential partitions and red controls

Seeded source mutants

Every mutant is made from the .om source, recompiled through the pinned seeded compiler/converter, linked instead of just that generated root, and rejected by the same differential. mutants.json records exact substitutions and return codes.

UnitMutantVerdict
ds_roundinvert finite/nonfinite pathKILLED
ds_slotpair stride divide by 3 instead of 2KILLED
ds_vecfforce rotary dimension 256KILLED
na_cubinaccept mismatched textKILLED
na_layoutwrong manifest capacityKILLED
na_verreverse version orderingKILLED
na_jsonomit DEL escapingKILLED
mm_dotsum instead of productKILLED
mm_errloosen relative error thresholdKILLED

Constants provenance

WolframLanguageEvaluator: {FromDigits["464c457f",16],FromDigits["7fff",16],ToCharacterCode[".text."],ToCharacterCode["abcdef"]} -> {1179403647,32767,{46,116,101,120,116,46},{97,98,99,100,101,102}}. These are encodings of existing source constants, not performance measurements.

Tier verdicts and chip runbook

Host differential: PASS. Strong-link/content red controls: PASS. Nine .om mutants: KILLED. Existing family host gates: PASS. Decode and decode256 simulator gates: PASS. Chip/live-RM/VFIO/HW: NOT_RUN because no GPU window is authorized. Full repository integration gate belongs to the integrator and was not run here.

For a future explicitly authorized exclusive window, the operator must follow the current repository hardware procedure and verify the current device/service ownership before any chip call. Rebuild at the candidate revision, rerun the host gates above, then run the documented chip modes of build/gpu_decode_attn_test, build/gpu_decode_attn256_test and build/gpu_matmul_api_test, capturing chip parity/negative-control receipts in a new evidence directory. Artifact export remains host-only. Do not treat this runbook as authorization, stop a live service, or reuse a historical lock/window. No hardware result is asserted by this PR.