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

[OM-GPU-TRACE P1] Source-bound native device trace readback and offline inspection

Open · #778 · open 2026-10-25 23:18 UTC

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

drakestapleton wrote on 2026-10-25 23:18 UTC

Goal

Consume the bounded native .om GPU marker/range stream from CUDA++ #82, preserving exact source/code/clock identity, explicit loss, and offline inspection. User-authorized 2026-10-25. This is the consumer/identity integration slice, not another GPU runtime, profiler service, trace store or general source-level GPU compiler.

Existing owners and boundaries

  • #638/#632: seeded compiler-to-device integration and backend interfaces.
  • #607/#608: local trace programme and versioned archive; #610: offline query/export; #612: optional offline viewer. Keep their ownership; #609's existing host/realization observer scope explicitly excludes per-kernel instrumentation and is not broadened by this issue.
  • CUDApp #82: GPU producer, timer/store encoding, bounded capture/readback and hardware qualification; CUDApp #17 / #22 / #35: measurement, encoded-code validation and lowering.
  • Omega Bridge owns conversion/attachment. Its GPU adapter at ad6d11f6507fba9ec02c08eaada36d10b9599c43 is negotiation/admission only: no allocation, encoding, launching, synchronization or buffer handoff. Do not force the native path through generated C/Python or external runtimes. Any actual adapter contract addition stays with its owner.
  • Reconcile the authorized learning/evaluator harnesses and current owners before implementation. Do not publish private repository source or data in public issues/evidence.

No personal assignees are invented. Coordinate shared files with existing owners and live ledger.

Grounded qualification matrix (audit 2026-10-25)

SurfaceObserved statusWhat it does not prove
Omega main 55f9b0af47de70a3d06357985cf99ae3e45c016f, seeded omcNative AArch64 host and checked mapping/device words presentArbitrary .om GPU source lowering or generic trace intrinsic
CUDApp main a520cd30e54c3b0ddd553ee3ccb3f5e673345cd6, native/blackwell/{vector,launch}.omExisting seeded vector emitter/launcher and committed GB10 correctness receiptDevice ranges, performance or model qualification
Omega resident-seat timer codeLegacy emitter reads/stores low32 timer; historical chip tests existPortable timer units, 64-bit/cross-SM/CPU correlation, new tracing qualification
Native trace segment candidateUnmerged fix/security673-qualified segappend/segcount/segrecover; 117 author host checksConcurrent/bounded asynchronous writer, retention/rotation/export or qualified throughput; fsync per append
#610/#612Owned offline query/viewer workAn already implemented device-range viewer

Resolve heads, files and receipts again. Current main has physics.lock, not cudapp.lock; do not infer dependency closure from stale documentation.

Dependency order and deliverables

  1. Contract first with CUDApp #82. Freeze event/header version, byte order, capacities, producer IDs/sequences, site IDs, run generation, dropped/incomplete records and clock scope. No arbitrary ad-hoc JSON strings from GPU threads.
  2. Source/symbol manifest. Bind site ID to source repository/commit/path/span and human label, kernel/function identity, compiler/seed/profile, code hash, QMD/launch shape and capture/sampling configuration. Refuse mismatched manifests and duplicate/unknown site IDs as specified; hashes establish identity, not correctness.
  3. Seeded .om readback/decoder. Consume bounded capture only after the existing launcher establishes completion/visibility. Produce local deterministic records/readable text through existing offline interfaces. A standalone bounded export may unblock the MVP while archive integration remains explicit; do not create a parallel durable store.
  4. Archive/query adapter through #608/#610 owners. Adapt the device record to the existing envelope. Keep clock domains and sample/loss status visible; never merge clocks by assumption or infer physical memory traffic/occupancy from markers. Link #612 only when a real data/query path exists; UI is not a blocker for the first CLI slice.
  5. Independent review and exact-artifact qualification. Host fixtures precede a separately coordinated chip run. General .om source-level mark/begin/end syntax, optimization-preserving side effects and debug/source maps require a separately scoped existing compiler/lowering-owner extension after this bounded producer; they are not silently introduced here.

Acceptance

  • Fully native .om project-owned implementation/tests; no new C kernel, C/Python tracing product fallback, CUDA toolkit/PTX/libcuda/NVTX dependency, daemon, external collector or default network.
  • Deterministic synthetic fixture covers two producers, repeated sites/ranges, equal timestamps, loss, sampling, partial completion, wrap boundary, zero/full capacity, invalid lengths/versions, stale generations, corrupt/truncated records and mismatched source/code manifest. Refusals are named; partial data never appears complete.
  • Unknown clock frequency/resolution, cross-SM alignment and CPU correlation remain UNKNOWN. Display host submit/wait, launch PTIMER and in-kernel timestamps as distinct metrics.
  • Range nesting/async issue-completion semantics are documented. Missing begin/end never creates a fabricated duration; no trace-induced synchronization is added.
  • Export stays local, read-only with respect to computation/authority/Cortex; no raw tensor/prompt/pointer payload by default and no consent/publication changes.
  • Disabled capture preserves original executable bytes and behavior; enabled capture matches math outputs and refuses unsafe lifetimes without changing authority.
  • Results identify host, simulator and GB10 separately and bind source/seed/compiler/binary/code/config hashes, raw commands/exits, negative controls, dropped counts and measured off/on overhead. New device-trace/overhead status stays NOT_RUN until measured.
  • Fresh-checkout instructions identify exact repositories/locks and supported profile. Bridge remains an optional declared interop boundary, not a hidden implementation route.

Implementation preparation is authorized; GPU access, service interruption, driver change, merge and deployment are not authorized by this issue. Preserve immutable historical evidence; no automatic closure from issue creation, host fixtures or a PR merge.

No comments.

Sign in to comment