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 / HOST-X86-20261030 / proposal-cpu-barrier.md

17 lines · 1200 bytes Raw Blame History Rendered
1# Title
2
3Seed a host CPU publication barrier: `dsb sy` on AArch64, a real fence elsewhere
4
5# Body
6
7ADR 0043 missing feature. Seeded Omega has no host CPU publication barrier.
8
9CUDA++ needs one. On the GB10 host the production instruction is `dsb sy`. On any other host the same driver sources have to compile, and the publication barrier has to be a real sequentially consistent fence. A no-op is not that barrier.
10
11`nvrm/cpu_barrier.h` is the C stand-in. The AArch64 body is `dsb sy`. The other body is `__atomic_thread_fence(__ATOMIC_SEQ_CST)`. `nvrm_cpu_relax` is `yield` on AArch64 and a compiler barrier elsewhere. Callers in `nvrm/`, `m16/` and the Blackwell engine use `nvrm_cpu_barrier()`.
12
13The non-AArch64 fence is migration-pending C. The portable library compiles those callers with the existing switches `CUDAPP_MIGRATION_PENDING_C_ENCODER` and `CUDAPP_MIGRATION_PENDING_C_CUBIN`.
14
15An AArch64 cross build of the shared objects that include this header is byte-identical to CUDA++ main. That comparison is not a GB10 run. GB10 device behavior stays NOT RUN.
16
17Filed as https://github.com/aien-dev/omega-mv/issues/939. The header comment links there. This file is the text that was drafted.