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
CUDApp / evidence / numeric-rest-20261106 / archive-fp-contract.md
| 1 | # Production archive floating-point contract |
| 2 | |
| 3 | Append-only supplement to the numeric remainder receipt. The direct numeric |
| 4 | test links already passed `-ffp-contract=off`, but the generic production |
| 5 | object rule did not. `mk/numeric.mk` now appends that required flag to every |
| 6 | numeric object, including the seven generated units, even if a caller sets |
| 7 | `CFLAGS` on the make command line. No global compiler flag or unrelated |
| 8 | object rule changed. |
| 9 | |
| 10 | Every build/run below used the same device-hidden bwrap/taskset/nice envelope |
| 11 | as the main receipt. No device or live service was accessed. |
| 12 | |
| 13 | ## Build-flag negative control |
| 14 | |
| 15 | Command inside the envelope (rc 0): |
| 16 | |
| 17 | ``` |
| 18 | make -B -j3 \ |
| 19 | 'CFLAGS=-std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -ffp-contract=fast -Isrc' \ |
| 20 | build/cudapp_om_numeric.o build/cudapp_om_numeric_tile.o \ |
| 21 | build/cudapp_om_numeric_rest.o build/cudapp_om_numeric_patch.o \ |
| 22 | build/cudapp_om_numeric_check.o build/cudapp_om_numeric_trace.o \ |
| 23 | build/cudapp_om_numeric_reduce.o |
| 24 | ``` |
| 25 | |
| 26 | [archive-fp-build.log](archive-fp-build.log) records every actual compiler |
| 27 | invocation. All have the deliberately conflicting `-ffp-contract=fast` |
| 28 | followed by `-ffp-contract=off`; the latter wins. The final compiler line |
| 29 | builds `cudapp_om_numeric_reduce.o` with that ordering. |
| 30 | |
| 31 | ## Exercised archive paths |
| 32 | |
| 33 | - `make -j3 test-gpu-scan`: rc 0, final |
| 34 | `C3 scan sim: PASS (139 checks)`; this refreshes the archive from those |
| 35 | objects and exercises the existing host/simulator E1 path. |
| 36 | [archive-scan-sim.log](archive-scan-sim.log). |
| 37 | - Compile the existing remainder differential driver, C oracle and adapters |
| 38 | with `-ffp-contract=off`, but resolve its strong Omega entries from the |
| 39 | actual `build/libomega_gpu.a` instead of recompiling generated sources: |
| 40 | compile rc 0; runtime rc 0; `NUMERIC REST OM DIFF PASS; host only; chip NOT_RUN`, |
| 41 | final `checks=8418438`. The complete compile and execution commands are in |
| 42 | [archive-diff.log](archive-diff.log). |
| 43 | |
| 44 | The main receipt's scalar/remainder mutation and direct differential results |
| 45 | are unchanged: no algorithm or generated source was edited for this build |
| 46 | correction. This supplement establishes that the production archive uses |
| 47 | and exercises the same floating-point build contract. Host/simulator PASS; |
| 48 | chip/live-RM/VFIO/HW NOT_RUN. No merge or deployment. |