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 / tests / fixtures / bw_hazard / README.md
| 1 | # Hazard checker fixtures (omega-mv#554) |
| 2 | |
| 3 | Encoded sm_121 bytes of the head_dim 256 prefill attention kernels from branch `feat/pattn256` (omega-mv#545), used by |
| 4 | `tests/bw_hazard_test.c` as the red receipt and its control. |
| 5 | |
| 6 | | File | Commit | Encoder | |
| 7 | |---|---|---| |
| 8 | | `pattn256_attend_ad5d650b.bin` | ad5d650b | before the fix: IADD3, ISETP_GE and EXIT got a fixed word 3 | |
| 9 | | `pattn256_attend_e3a26848.bin` | e3a26848 | after the fix (PR #553): the scheduled control word is kept | |
| 10 | | `pattn256_prep_ad5d650b.bin` | ad5d650b | before the fix | |
| 11 | | `pattn256_prep_e3a26848.bin` | e3a26848 | after the fix | |
| 12 | |
| 13 | `pattn256_attend_ad5d650b.bin` is byte-identical (sha256 2e3f9d41...) to `attend.bin` in the investigation folder |
| 14 | `2026-10-18-pattn256-hang`, the kernel that faulted on the GB10 (Xid 13). How the files were made: build |
| 15 | `libomega_gpu.a` at each commit (PHYSICS_DIR at the pinned physics commit), then write the bytes returned by |
| 16 | `omega_gpu_prefill_attn256_encode(kind, ...)` (kind 1 attend, kind 0 prep; built, encoded and patched, no device). |
| 17 | Checksums in `SHA256SUMS`. |
| 18 | |
| 19 | ## The rule, checked against ptxas (offline oracle only) |
| 20 | |
| 21 | `nvcc 13.0.88 -arch=sm_121 -cubin -O3` on a loop that reloads through a pointer and then advances it (source and |
| 22 | listing sealed in the investigation folder `2026-10-19-omega-554-hazard`, war.cu sha256 50386e2f...): |
| 23 | |
| 24 | ``` |
| 25 | /*0050*/ LDCU.64 UR12, c[0x0][0x358] ; control 0x000ea200: write barrier 2 |
| 26 | /*0080*/ BRA.U !UP0, 0x1e0 ; control 0x004fea00: waits on barrier 2 before UR12 is used |
| 27 | /*0140*/ LDG.E.STRONG.GPU R0, desc[UR12][R2.64] ; control 0x0000a200: write barrier 2, READ barrier 0 |
| 28 | /*0160*/ LDG.E.STRONG.GPU R4, desc[UR12][R4.64] ; control 0x000ea200: write barrier 2, no read barrier |
| 29 | /*01b0*/ IADD.64 R2, R2, UR4 ; control 0x001fe400: waits on barrier 0 before rewriting R2 |
| 30 | ``` |
| 31 | |
| 32 | ptxas gives the first load a read barrier because its address pair R2:R3 is rewritten while the load may be in flight, |
| 33 | and the rewriting instruction waits on it; the second load, whose address is only replaced by its own result, gets |
| 34 | none. That is the WAR rule the checker applies (and the RAW rule on the descriptor). The chip taught the same rule |
| 35 | twice: omega-mv#545 (this fixture) and the fp8 GEMV hang recorded in `src/omega_bw_em.h`. |