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 / attn-host-policy-20261106 / README.md

71 lines · 6781 bytes Raw Blame History Source

Attention workspace, scan verification and elementwise clock policy

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

Base: #340 feat/api-kernel-gen-om at 0463629a6d16. Unit registration is first (b3611ff8). Existing API kernel generation and view migrations are preserved. Public APIs and launch/refusal/trust semantics are unchanged.

Source and dependency pins

Default-OFF C oracles: CUDAPP_MIGRATION_PENDING_C_ATTENTION_HOST_POLICY, CUDAPP_MIGRATION_PENDING_C_SCAN_CHECK_REST, CUDAPP_MIGRATION_PENDING_C_CLOCK_SCALARS. The clock flag affects only this assignment's elementwise caller. Other engine/m16 clock work is outside this PR.

Host effects stay in C: allocator/free, launch submission, clock_gettime, error reporting, and byte-moving pointer windows. Thread/shared-memory rounding, allocation/chunk sizes and offsets, poison/prefix/sorted-neighbor reductions and seconds/nanoseconds arithmetic execute in seeded Omega by default.

Differential partitions

tests/attn_host_fixture.c builds the real dispatchers twice, default Omega and compile-time C oracle. tests/attn_host_diff.c compares outputs and the complete transport array after each operation.

Known-good prefix/sort outputs pass; corrupted last prefix word and descending neighbors fail. Removing any one of omega_ah_plan, omega_sc_check, omega_clock_ns makes the link fail. commands.json records each command, rc and output. Paths are normalized from /home/drakestapleton to ~. No binary, cubin, PTX or disassembly is committed.

Commands actually run

Every test and simulator invocation uses this device-hiding prefix:

bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10
Command after prefixrcFinal line
env OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc OMEGA_BRIDGE=/tmp/bridge-73-apiviews python3 tests/attn_host_check.py --mutants --out build/attn-host-check0ATTN-HOST-CHECK PASS

Seeded source mutants

Each mutant is made in .om, recompiled using the pinned seeded converter/compiler, linked instead of only its generated unit, and rejected by the same differential. Exact substitutions and return codes are in mutants.json.

UnitSemantic mutationVerdict
attn_hostthread rounding +30 rather than +31KILLED
attn_hostshared size scale 8 rather than 16KILLED
attn_hostworkspace rows stride 3 rather than 4KILLED
attn_hostreverse chunk minimum comparisonKILLED
attn_hosthead-map byte offset scale 8 rather than 4KILLED
attn_scanchkwrong poison wordKILLED
attn_scanchkadd rather than subtract prefix neighborsKILLED
attn_scanchkreverse sorted-neighbor comparisonKILLED
attn_clockwrong timestamp unit scaleKILLED

Constant provenance

WolframLanguageEvaluator: {FromDigits["7fa00bad",16],FromDigits["ffffffe0",16]} -> {2141195181,4294967264}. These are encodings of source constants, not measurements.

Chip runbook and remaining qualification

Chip/live-RM/VFIO/HW tiers are NOT_RUN: no GPU window is authorized. Full repository integration gate belongs to the integrator and was not run here. Host/simulator results are not chip qualification.

In a future explicitly authorized exclusive window, follow the then-current repository hardware procedure, verify actual device/service ownership, rebuild at the candidate revision and rerun the host gates. Run the documented chip modes of build/gpu_attention_test, build/gpu_elementwise_test and build/gpu_scan_test with their comparator/negative-control tiers; record resulting receipts in a new evidence directory. For scans include prefix f32/u32 and radix keys/pairs so the post-launch verification callsites execute. This runbook grants no permission to touch a live service, GPU lock, driver or device. No chip result is claimed here.

Focused family receipt

The same device-hiding prefix ran make -j3 test-gpu-attention test-gpu-elementwise test-gpu-scan, rc 0, final line PASS: 348 checks, 0 failed. family-gates.log is the complete receipt. Elementwise host checks: 24, zero failed. Attention host checks: 137 for each standard/head-dimension tier; attention simulator tiers and sweep all passed, including general sweep 318 of 318 configurations and five caught general mutants. Scan: C3 scan sim: PASS (263 checks). Expected divergent-warp/shared-range simulator diagnostics are caught red controls in the existing attention gate, not unexplained failures. The elementwise API gate has host and chip modes but no simulator mode; no nonexistent elementwise simulator tier is claimed.

Host differential: PASS. Content and missing-unit red controls: PASS. Nine seeded .om mutants: KILLED. Family host checks: PASS. Attention/scan simulator checks: PASS. Chip/live-RM/VFIO/HW: NOT_RUN.