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 / numeric-rest-20261106 / archive-fp-contract.md

48 lines · 2301 bytes Raw Blame History Rendered
1# Production archive floating-point contract
2
3Append-only supplement to the numeric remainder receipt. The direct numeric
4test links already passed `-ffp-contract=off`, but the generic production
5object rule did not. `mk/numeric.mk` now appends that required flag to every
6numeric object, including the seven generated units, even if a caller sets
7`CFLAGS` on the make command line. No global compiler flag or unrelated
8object rule changed.
9
10Every build/run below used the same device-hidden bwrap/taskset/nice envelope
11as the main receipt. No device or live service was accessed.
12
13## Build-flag negative control
14
15Command inside the envelope (rc 0):
16
17```
18make -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
27invocation. All have the deliberately conflicting `-ffp-contract=fast`
28followed by `-ffp-contract=off`; the latter wins. The final compiler line
29builds `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
44The main receipt's scalar/remainder mutation and direct differential results
45are unchanged: no algorithm or generated source was edited for this build
46correction. This supplement establishes that the production archive uses
47and exercises the same floating-point build contract. Host/simulator PASS;
48chip/live-RM/VFIO/HW NOT_RUN. No merge or deployment.