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/elementwise-tail-chunk-20261112/README.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 / 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 3 Two more runs of `build/gpu_elementwise_test` built at commit `5783a549` (binary sha256 4 ``f65d3afcd00180c101a8d4f922dd7b300f0c7c48fb9c1b7e375e0980660db2d2``), on the GB10, shared chip, 5 values only. They exist because the first receipt (`evidence/chip-gates-shared-`20261112`/`) named 6 the wrong call; see `evidence/chip-gates-shared-`20261112`/README.md.correction.json`. 7 8 The 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 27 Under gdb the fault came in a call with n = 131073 and a destination range of 524288 bytes. Whether 28 it is the same call as the first `UNWRITTEN` one of run 1 is not shown: the two processes have 29 different memory layouts, and in run 1 those calls returned. 30 31 ## What the two runs support 32 33 A 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: 35 run 1 shows 131071 of its 131072 checked words unwritten, and run 2 shows a 524288-byte copy 36 faulting in a call with n = 131073. That is the plan's `p[10]` for n >= 131072 (the full chunk), 37 used where the chunk's own 4 bytes belong. 38 39 A call of one chunk is not affected: for n = 4096 the plan's `p[10]` is 16384, the chunk's own 40 size (measured by the independent reviewer of head `b1818e36` on the hosted plan; the first twelve 41 cases of run 1 pass). 42 43 Fix: 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`).