Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/issues/71aec7eb1cc2f0c4 # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # [CUDA-MISSION C1] Export exact CUDA Driver ABI from seeded Omega shared libraries Open · #42 · open 2026-10-29 12:13 UTC Imported from GitHub aien-dev/omega-bridge#42, by drakestapleton drakestapleton wrote on 2026-10-29 12:13 UTC Parent mission: CUDApp #183 . Existing compatibility umbrella: CUDApp #74 . Owns C1 ABI, after C0 profile freeze; reuse native binding machinery. ## Implementation brief Bridge main inspected at `ed420fcbffa1ad83db78111deb836dd880ed891e`. `tools/native` already emits `libomega_native.so` with hosted ARM64/x86 output; `src/native.om` generates bindings. Extend this machinery with a CUDA ABI profile. Do not rename an Omega entry point and assume compatibility. Record final repository placement with #74's owner before code; no relocation of existing implementations. Produce actual `libcuda.so.1` ELF shared objects for the supported host ABIs with matching SONAME, symbol names and version/alias behavior. Required exports come from C0's trace. Candidate surface includes initialization/device query, context lifecycle/current context, allocation/free/copies, module/function lifecycle, kernel launch and synchronization. Add get-proc-address/error-query/stream variants only according to the pinned contract; no advertised successful stubs. Implement explicit conversion between CUDA ABI and Omega calls: return CUresult, preserve out-parameter conventions, widths/alignment/signedness, host register/stack calling convention, TLS context state, handle generations/ownership, reentrancy and teardown. Handle `kernelParams` versus packed `extra` arguments according to the admitted API. CUDA device pointers are not unchecked host pointers. Reject stale handles/wrong context, invalid sizes/ranges and unsupported features before effects where the API contract requires it. Async errors and stream/event semantics must be explicit whenever admitted. Current generated typed wrappers may abort on nonzero Omega status. CUDA wrappers must translate outcomes to the specified error contract; do not use those aborting wrappers for expected CUDA errors. Treat kernel-process failures separately from CUDA-visible failures. Pin exact headers/prototypes for old/new `cuGetProcAddress` and ABI variants; Context7 returned mixed excerpts, so signatures are established from selected version headers and differential tests. Version-specific unsupported behavior must be implemented faithfully, including null output pointers/status fields where required. Reuse compiler/FFI owners: Bridge #29 for host/function-table requirements, Omega #888 for external shared-library calls. Reconcile tools/native's x86 digest with stale AGENTS wording through existing #41; record compiler receipts. Qualify physical x86 callable ABI, including callee-saved state and concurrent calls, before C4. ## Runtime profile follow-on In a separate draft PR after Driver API acceptance, select a stock runtime-API fixture and record all required calls/export-table UUIDs. Distinguish: - Vendor libcudart retained over our driver facade. - An implemented replacement libcudart for dynamically linked applications. - An unchanged executable containing statically linked vendor runtime bytes. Unknown tables refuse. Investigate undocumented behavior through a reviewed observation/provenance plan; no guessing tables or importing another compatibility implementation. ## Acceptance - ELF SONAME/import/export inspection plus actual dynamic loader calls on advertised host ABIs; wrong-ISA library refuses. - Header-based external callers exercise exact signatures, out parameters, calling conventions and function lookup versions; pinned oracle material stays test-only. - Context/handle/allocator/launch state tests, invalid combinations and no-side-effect refusal controls pass. - Underlying error propagation produces the required CUresult instead of abort/fake success. - The real library calls the pinned backend; no forwarding into NVIDIA libcuda or CPU answer substitution. - C0's driver fixture integrates with C2 translation. C1 may close for its specified host gate; C3/C4 remain open until physical GPU evidence. ## Delivery and closure Follow mission #183 , current repository instructions, latest issue comments and crumbs. Claim paths before work; keep existing owners and code locations. New first-party logic and semantic tests use seeded .om. Open a draft PR with actual changes, exact dependencies and failing-before/passing-after evidence. An independent reviewer must check the final integrated source and controls. Publish immutable commands, exits and source/compiler/artifact hashes. Source/host/emulator/physical states remain separate. No auto-close until this issue's gate passes; preserve serving, hardware reservations and existing driver state. No comments. Sign in to comment