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 / evidence / guard-pred-20261107 / c-oracle-guard-proposal.diff
| 1 | --- a/src/omega_blackwell_codegen.c 2026-11-07 11:01:21.354725222 -0600 |
| 2 | +++ b/src/omega_blackwell_codegen.c 2026-11-07 11:01:26.901996563 -0600 |
| 3 | @@ -895,6 +895,13 @@ |
| 4 | default: |
| 5 | return -1; |
| 6 | } |
| 7 | + /* DRA-483 (proposal, matches om/encoder/bw_enc_sm121.om enc1): the guard predicate of every op sits in |
| 8 | + * w[0] bits 12..15 (7 always, 0 @P0, 8 @!P0). LDCU / LDCU.64 are uniform-datapath instructions whose |
| 9 | + * guard bits name UP0..UPT (nvdisasm 13.0.85 prints @UP0), so a P0 guard is refused there. */ |
| 10 | + if (insn->predicate_p0) { |
| 11 | + if (insn->op == BW_IR_LDCU || insn->op == BW_IR_LDCU64) return -1; |
| 12 | + w[0] = (w[0] & ~0xF000u) | ((insn->predicate_not ? 0x8u : 0x0u) << 12); |
| 13 | + } |
| 14 | return 0; |
| 15 | } |
| 16 | #endif /* C encoder, migration-pending */ |