Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/evidence/numeric-rest-20261106/archive-fp-contract.md # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / evidence / numeric-rest-20261106 / archive-fp-contract.md` 48 lines · 2301 bytes Raw Blame History Rendered 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.