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 / elementwise-tail-chunk-20261112 / README.md

44 lines · 2513 bytes Raw Blame History Rendered
1# Elementwise chip gate at 5783a549: which call failed (2026-11-12)
2
3Two more runs of `build/gpu_elementwise_test` built at commit 5783a549 (binary sha256
4`f65d3afcd00180c101a8d4f922dd7b300f0c7c48fb9c1b7e375e0980660db2d2`), on the GB10, shared chip,
5values only. They exist because the first receipt (`evidence/chip-gates-shared-20261112/`) named
6the wrong call; see `evidence/chip-gates-shared-20261112/README.md.correction.json`.
7
8The two runs are separate processes and are reported separately.
9
10## Run 1: unbuffered output (`elementwise-unbuffered.txt`)
11
12`stdbuf -o0 -e0 ./build/gpu_elementwise_test --out FILE`.
13
14- Twelve cases pass, through `swiglu_1000`.
15- `swiglu_131073` is the first failure: `rc=UNWRITTEN`, `calls=2`, `unwritten=131071`, and its
16 mutant call also returns `UNWRITTEN`. Both calls returned: the FAIL line is printed after them.
17- The process then dies with exit 139. This run does not show in which later call.
18
19## Run 2: under gdb (`gdb.txt`, command in `gdb-commands.txt`)
20
21- SIGSEGV in `memcpy`, called from `run_abc`, called from `run_1d`.
22- Frame 0 (`memcpy`): x0, the destination, is 0xfffff4bff010; x5 is 0xfffff4c7f010, which is
23 x0 + 0x80000 (524288), the copy length; x3 is 0xfffff4bfffd0 and x2 is 0x7efb0 (520112), the
24 routine's own loop registers at the fault. They are given as read and not interpreted here.
25- Frame 2 (`run_1d`): registers hold 0x20001 (131073) and 1.
26
27Under gdb the fault came in a call with n = 131073 and a destination range of 524288 bytes. Whether
28it is the same call as the first `UNWRITTEN` one of run 1 is not shown: the two processes have
29different memory layouts, and in run 1 those calls returned.
30
31## What the two runs support
32
33A one-dimensional call longer than one chunk (131072 elements) is split, and the last chunk of
34`swiglu_131073` has one element. At 5783a549 that chunk was launched and copied as 524288 bytes:
35run 1 shows 131071 of its 131072 checked words unwritten, and run 2 shows a 524288-byte copy
36faulting in a call with n = 131073. That is the plan's `p[10]` for n >= 131072 (the full chunk),
37used where the chunk's own 4 bytes belong.
38
39A call of one chunk is not affected: for n = 4096 the plan's `p[10]` is 16384, the chunk's own
40size (measured by the independent reviewer of head b1818e36 on the hosted plan; the first twelve
41cases of run 1 pass).
42
43Fix: commit 97fc9eb3, `bytes = ni * 4`. With it `swiglu_131073` passes with `calls=2 unwritten=0`
44(`evidence/chip-gates-shared-20261112/after-97fc9eb3/elementwise.txt`).