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

branch main Branches Tags History

omega-mv / spec / accelerator-world.md

165 lines · 10372 bytes Raw Blame History Source

OMEGA Milestone 19 Architecture: Persistent Accelerator World

Milestone 19 transitions OMEGA from per-operation channel initialization to a persistent accelerator world runtime (OmegaAcceleratorWorld) on NVIDIA DGX Spark (Grace Blackwell GB10, sm_121).

1. Scope and Execution Boundary

2. World Epoch and Two-Level Generation Model

To prevent ABA hazards without globally invalidating unrelated resident objects, the architecture enforces a two-level epoch and generation model.

2.1 World Epoch (WorldEpoch)

A 32-bit counter incremented only when the entire OmegaAcceleratorWorld lifecycle is initialized, reset, or reconstructed. All objects created within a world epoch inherit this epoch.

2.2 Object Generation (ObjectGeneration)

A 32-bit counter maintained per registry slot in the buffer and code registries. The generation counter increments whenever a slot is revoked, freed, or reused.

2.3 Capability Handle Structure

Handle = {
    uint32_t world_epoch;
    uint32_t object_id;
    uint32_t object_generation;
    uint32_t object_type;
    uint32_t permissions;
}

2.4 Internal Address and Bounds Authority

The capability handle carries identity, generation, type, and permission flags. The external handle does not carry authoritative GPU virtual addresses or size bounds. The trusted buffer and code registries maintain the authoritative GPU VA, CPU mapping, and size. Address resolution occurs internally within OmegaAcceleratorWorld upon handle validation:

handle.world_epoch == world.current_epoch
AND
handle.object_generation == registry[object_id].generation
AND
(handle.permissions & required_permissions) == required_permissions
AND
requested_offset + requested_span <= registry[object_id].size_bytes

Attempts to present stale handles (mismatched object generation), foreign handles (mismatched world epoch), or out-of-bounds offsets are rejected at the world boundary.

3. Persistent Substrate and Separation of Normal Residency from Fault Recovery

3.1 Normal Sustained Operation (Gate 8)

During normal sustained execution (including the 1,000-operation heterogeneous qualification schedule), the world maintains:

No channel teardown, context recreation, or ioctl re-initialization occurs across dispatches.

3.2 Bounded Channel Fault Recovery (Gate 12)

If a hardware error or kernel-level channel fault occurs:

4. Live Queue Ring Discovery and Multi-Wrap Stress (Gate 7)

The channel GPFIFO capacity is discovered dynamically from the live channel configuration:

discovered_ring_capacity = rm->entries

Gate 7 exercises at least 3x the discovered capacity:

dispatch_count >= 3 * discovered_ring_capacity

Verification proves:

  1. GPPut wraps modulo discovered_ring_capacity.
  2. GPGet and execution progress advance monotonically.
  3. Uncompleted entries are never overwritten (respecting entries - 1 flow control).
  4. Sequence numbers remain strictly monotonic.
  5. Completion markers correlate unambiguously to dispatch indices.
  6. No stale descriptor or retired payload is replayed.

5. Registries and Scratch Arena

5.1 Buffer Registry

Maintains resident UVM buffers allocated via NVRM. Each entry tracks:

5.2 Code Registry

Maintains dynamically compiled sm_121 machine code blocks. Each entry tracks:

5.3 Scratch Arena

A persistent pre-allocated UVM memory arena subdivided for transient descriptors:

6. Rolling State Digest Specification

The world state transitions deterministically across every dispatch. The rolling digest D_n is calculated using a canonical binary serialization over fixed-width fields:

D_n = SHA256(
    domain_tag                    /* 32 bytes: "OMEGA_WORLD_ROLLING_STATE_V1\0..." */
 || D_(n-1)                       /* 32 bytes: previous rolling digest */
 || uint32_t world_epoch          /* 4 bytes */
 || uint64_t sequence_number      /* 8 bytes */
 || uint8_t  semantic_id[32]      /* 32 bytes */
 || uint8_t  realization_id[32]   /* 32 bytes */
 || uint8_t  code_digest[32]      /* 32 bytes */
 || uint8_t  input_bindings[32]   /* 32 bytes: SHA-256 of input buffer digests */
 || uint32_t obj_count            /* 4 bytes */
 || uint32_t obj_id_gen_pairs[K]  /* 8*K bytes: object_id + generation */
 || uint32_t capability_scope     /* 4 bytes */
 || uint32_t completion_value     /* 4 bytes */
 || uint8_t  result_digest[32]    /* 32 bytes: SHA-256 of output buffers */
 || uint32_t outcome_code         /* 4 bytes: 0 = SUCCESS */
)

Nondeterministic parameters (timestamps, host pointer addresses, process IDs) are strictly forbidden from the digest serialization.

7. Deterministic 1,000-Operation Sustained Qualification Schedule

The 1,000-operation sustained qualification workload executes 250 repetitions of a deterministic four-operation cycle:

  1. VecAdd (vector integer addition, 1024 elements).
  2. INT32 MatMul (integer matrix multiplication, M=16, N=16, K=16).
  3. FP16 MatMul (tensor-core HMMA.16816.F32, M=16, N=16, K=16).
  4. BF16 MatMul (tensor-core HMMA.16816.F32.BF16, M=16, N=16, K=16).

Total dispatches: 250 * 4 = 1,000 operations on a single persistent channel and VAS.

8. Milestone 19 Gate Definitions