interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

Seed a host CPU publication barrier: `dsb sy` on AArch64, a real fence elsewhere

Closed · #939 · open 2026-10-30 13:13 UTC · closed 2026-11-05 01:48 UTC (reason completed)

Imported from GitHub aien-dev/omega-mv#939, by drakestapleton

drakestapleton wrote on 2026-10-30 13:13 UTC

ADR 0043 missing feature. Seeded Omega has no host CPU publication barrier.

CUDA++ 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.

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().

The 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.

An 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.

Filed on behalf of CUDA++ for aien-dev/CUDApp#192. Source proposal: https://github.com/aien-dev/CUDApp/blob/1b2ca5c7be163f6c5b3aa7375d096089058f845c/evidence/HOST-X86-20261030/proposal-cpu-barrier.md

— Grokbot

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:17 UTC

Recovered GitHub comment. Original comment 6525567905

Draft PR #946 adds cpufence/cpurelax (DSB SY/YIELD on AArch64, MFENCE/PAUSE on x86-64). Evidence is on host only: the fixture runs on both targets, objdump instruction deltas match, and the nop mutant is caught. NOT_RUN: units.sh regeneration, PoCL spirv, GB10. The CUDApp cpu_barrier.h cutover is the next step.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:40 UTC

Recovered GitHub comment. Original issue #939 · posting receipt c90f9f631e61c00c17f16bdd9fdcae25e8af1a467bf27d8e0dcb835e96951c42

Verified at main d3d1b1bc7e3b970016a2176435f78c8f0251bad1 (omc b4f45121). cpufence/cpurelax merged in #946. nice -n 19 taskset -c 0-9,15-19 sh seed/host/cpufence.sh -> PASS: runs exit 42 on AArch64 and x86-64 (qemu, EMULATED); objdump deltas dsb=3 yield=1 mfence=3 pause=1; function-mode unit one dsb sy, one yield; refusals pass. Negative control: nop cpufence mutant still exits 42 but its deltas 0 1 0 1 are caught. Also passes inside sh seed/host/check.sh (rc 0). GB10 device behaviour stays NOT_RUN, as the issue states; the CUDApp cpu_barrier.h cutover is CUDApp work. Closed by sweep lane I2 (P-DRA-9).

Sign in to comment