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/CUDApp/blob/main/docs/runtime/portability_table.tsv # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / docs / runtime / portability_table.tsv` 179 lines · 30963 bytes Raw Blame History 1 # Omega portability table (omega-mv#596, slice R3). Checked by: make test-runtime-portability (tools/runtime_portability_check.sh). 2 # Columns, tab separated: file, class, reason, os_binding. Explained in docs/runtime/PORTABILITY.md. 3 # class: CHIP_SPECIFIC carries knowledge of the GB10 / Blackwell or sm_86 / Ampere chip, or of its driver interface; PORTABLE carries neither. 4 # os_binding: FREESTANDING_PROVEN (a .c file in GPU_FS_SRCS, mk/omega-gpu-engine.mk, built by make gpu-engine-freestanding), NO_HOSTED_INCLUDE (no hosted header by include scan only; not linked freestanding), HOSTED_LIBC (includes stdio, stdlib, time, errno, math or pthread), LINUX_DRIVER (includes nvrm.h, m16_native.h or omega_gpu_platform_linux.h). 5 file class reason os_binding 6 src/omega_ampere_codegen.c CHIP_SPECIFIC Target-explicit sm_86/sm_121 host ABI marshaling; encoding is generated from om/encoder/ampere_enc_sm86.om. NO_HOSTED_INCLUDE 7 src/omega_ampere_codegen.h CHIP_SPECIFIC Target selector uses the existing chip-specific Blackwell IR as its input representation. NO_HOSTED_INCLUDE 8 src/omega_ampere_qmd.c CHIP_SPECIFIC Host ABI marshaling for checked Ampere QMD, class admission, reserve and packet policy implemented in Omega. NO_HOSTED_INCLUDE 9 src/omega_ampere_qmd.h CHIP_SPECIFIC Ampere COMPUTE_A/B and FIFO constants and QMD policy interface; device NOT_RUN. NO_HOSTED_INCLUDE 10 src/omega_blackwell_codegen.c CHIP_SPECIFIC Instruction generators for the sm_121 kernels (vector add, matmul, the Qwen decode set); emits Blackwell machine code through the encoder. In the freestanding closure; the allocating generators and the printing self-test are hosted-only (docs/numeric/OMEGA_GPU_NATIVE_BOUNDARY.md section 3). FREESTANDING_PROVEN 11 src/omega_blackwell_codegen.h CHIP_SPECIFIC Blackwell IR opcodes and kernel-generator API; includes omega_blackwell_matmul.h. NO_HOSTED_INCLUDE 12 src/omega_blackwell_codegen_attn.c CHIP_SPECIFIC Generates the single-launch decode attention kernel (sm_121 machine code, 8 query heads per KV head, head_dim 128). NO_HOSTED_INCLUDE 13 src/omega_blackwell_codegen_attn.h CHIP_SPECIFIC Interface of the decode attention kernel generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 14 src/omega_blackwell_codegen_attn256.c CHIP_SPECIFIC Generates the head_dim 256 one-launch decode attention kernel as sm_121 machine code. NO_HOSTED_INCLUDE 15 src/omega_blackwell_codegen_attn256.h CHIP_SPECIFIC Interface of the head_dim 256 decode attention generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 16 src/omega_blackwell_codegen_bf16.c CHIP_SPECIFIC Generates the bf16 streaming GEMV (lm_head) as sm_121 machine code. NO_HOSTED_INCLUDE 17 src/omega_blackwell_codegen_bf16.h CHIP_SPECIFIC Interface of the bf16 GEMV generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 18 src/omega_blackwell_codegen_dec.c CHIP_SPECIFIC Generates the decode glue kernels (residual add, RMSNorm, SwiGLU, expert combine, argmax) as sm_121 machine code. NO_HOSTED_INCLUDE 19 src/omega_blackwell_codegen_dec.h CHIP_SPECIFIC Interface of the decode glue kernel generators; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 20 src/omega_blackwell_codegen_gdn.c CHIP_SPECIFIC Generates the one-launch Gated DeltaNet decode step as sm_121 machine code. NO_HOSTED_INCLUDE 21 src/omega_blackwell_codegen_gdn.h CHIP_SPECIFIC Interface of the Gated DeltaNet generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 22 src/omega_blackwell_codegen_gemm.c CHIP_SPECIFIC Generates the FP8 block-scaled grouped GEMM for prefill as sm_121 machine code. NO_HOSTED_INCLUDE 23 src/omega_blackwell_codegen_gemm.h CHIP_SPECIFIC Interface of the FP8 prefill GEMM generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 24 src/omega_blackwell_codegen_moe.c CHIP_SPECIFIC Generates the FP8 GEMV kernel family (MoE) as sm_121 machine code. NO_HOSTED_INCLUDE 25 src/omega_blackwell_codegen_moe.h CHIP_SPECIFIC Interface of the FP8 GEMV generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 26 src/omega_blackwell_codegen_moe2.c CHIP_SPECIFIC Generates FP8 GEMV variant 2 (row-pipelined) as sm_121 machine code. NO_HOSTED_INCLUDE 27 src/omega_blackwell_codegen_moe2.h CHIP_SPECIFIC Interface of FP8 GEMV variant 2; includes omega_blackwell_codegen_moe.h. NO_HOSTED_INCLUDE 28 src/omega_blackwell_codegen_pattn.c CHIP_SPECIFIC Generates the causal prefill attention kernel on tensor cores (HMMA, SHFL) as sm_121 machine code. NO_HOSTED_INCLUDE 29 src/omega_blackwell_codegen_pattn.h CHIP_SPECIFIC Interface of the prefill attention generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 30 src/omega_blackwell_codegen_pattn256.c CHIP_SPECIFIC Generates the head_dim 256 causal prefill attention kernels on tensor cores as sm_121 machine code. NO_HOSTED_INCLUDE 31 src/omega_blackwell_codegen_pattn256.h CHIP_SPECIFIC Interface of the head_dim 256 prefill attention generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 32 src/omega_blackwell_codegen_pf.c CHIP_SPECIFIC Generates the small device-resident prefill kernels (copy and friends) as sm_121 machine code through the omega_bw_em.h emitters. NO_HOSTED_INCLUDE 33 src/omega_blackwell_codegen_pf.h CHIP_SPECIFIC Interface of the prefill helper kernels; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 34 src/omega_blackwell_codegen_pfhost.c CHIP_SPECIFIC Generates the on-chip router-logits and MoE-combine kernels as sm_121 machine code. NO_HOSTED_INCLUDE 35 src/omega_blackwell_codegen_pfhost.h CHIP_SPECIFIC Interface of the on-chip router and combine generators; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 36 src/omega_blackwell_codegen_qg.c CHIP_SPECIFIC Generates the native FP8 prefill kernels (activation quantiser, QMMA GEMM) as sm_121 machine code. NO_HOSTED_INCLUDE 37 src/omega_blackwell_codegen_qg.h CHIP_SPECIFIC Interface of the native FP8 prefill generators; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 38 src/omega_blackwell_codegen_qmma.c CHIP_SPECIFIC Encodes the FP8 tensor-core op QMMA.16832, patched in after the shared encoder (which lacks it); values come from an nvcc sm_121 oracle. NO_HOSTED_INCLUDE 39 src/omega_blackwell_codegen_qmma.h CHIP_SPECIFIC Describes the QMMA.16832.F32.E4M3.E4M3 encoding for sm_121. NO_HOSTED_INCLUDE 40 src/omega_blackwell_codegen_router.c CHIP_SPECIFIC Generates the MoE router kernel (RMSNorm, logits, softmax, top-8) as sm_121 machine code. NO_HOSTED_INCLUDE 41 src/omega_blackwell_codegen_router.h CHIP_SPECIFIC Interface of the router kernel generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 42 src/omega_blackwell_codegen_tc2.c CHIP_SPECIFIC Generates the tensor-core grouped FP8 GEMM v2 as sm_121 machine code. NO_HOSTED_INCLUDE 43 src/omega_blackwell_codegen_tc2.h CHIP_SPECIFIC Interface of the tensor-core GEMM v2 generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 44 src/omega_blackwell_codegen_tc.c CHIP_SPECIFIC Generates tensor-core kernels (HMMA.16816 fragment layout) as sm_121 machine code. NO_HOSTED_INCLUDE 45 src/omega_blackwell_codegen_tc.h CHIP_SPECIFIC Interface of the tensor-core kernel generators; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 46 src/omega_blackwell_codegen_tgemm.c CHIP_SPECIFIC Generates the device-resident bf16 training GEMM (HMMA.16816, NN layout, f32 out) as sm_121 machine code through the omega_bw_em.h emitters. NO_HOSTED_INCLUDE 47 src/omega_blackwell_codegen_tgemm.h CHIP_SPECIFIC Interface of the bf16 training GEMM generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 48 src/omega_blackwell_codegen_tern.c CHIP_SPECIFIC Generates the ternary W2A8 GEMV as sm_121 machine code. NO_HOSTED_INCLUDE 49 src/omega_blackwell_codegen_tern.h CHIP_SPECIFIC Interface of the ternary GEMV generator; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 50 src/omega_blackwell_encoder.c CHIP_SPECIFIC The sm_121 machine-code encoder: packs instructions into 16-byte words. OS-free (in the freestanding closure) but the words it writes are Blackwell's. FREESTANDING_PROVEN 51 src/omega_blackwell_encoder.h CHIP_SPECIFIC Encoder interface; OMEGA_BW_INSTRUCTION_BYTES is 16, the Blackwell instruction size. NO_HOSTED_INCLUDE 52 src/omega_blackwell_engine.c CHIP_SPECIFIC The Linux backend of OmegaGpuBackend: calls m16_native_* and carries the GB10 compute-class setup words (class 0xcec0). LINUX_DRIVER 53 src/omega_blackwell_engine.h CHIP_SPECIFIC Declares the Blackwell GB10 backend function table for the engine core. NO_HOSTED_INCLUDE 54 src/omega_blackwell_matmul.c CHIP_SPECIFIC Plans the Blackwell matmul kernels; in the freestanding closure, but the kernel shapes are sm_121 tensor-core shapes. FREESTANDING_PROVEN 55 src/omega_blackwell_matmul.h CHIP_SPECIFIC Types of the Blackwell matmul kernel (OmegaBlackwellKernel) and its size limits. NO_HOSTED_INCLUDE 56 src/omega_blackwell_qmd.c CHIP_SPECIFIC Builds the 384-byte QMD launch descriptor (96 words) for Blackwell compute class 0xcec0. In the freestanding closure. FREESTANDING_PROVEN 57 src/omega_blackwell_qmd.h CHIP_SPECIFIC QMD layout: OMEGA_BW_QMD_BYTES 384, field evidence tiers (documented, observed, reverse engineered), shared-memory field per clcec0qmd.h. NO_HOSTED_INCLUDE 58 src/omega_blackwell_realize.c CHIP_SPECIFIC Turns an Omega vector program into Blackwell code plus QMD plus constant bank. In the freestanding closure. FREESTANDING_PROVEN 59 src/omega_blackwell_realize.h CHIP_SPECIFIC Realization interface; includes omega_blackwell_qmd.h and omega_blackwell_encoder.h. NO_HOSTED_INCLUDE 60 src/omega_blackwell_submit.c CHIP_SPECIFIC The vector executor: allocates and submits through m16_native_* on the Linux driver; its setup words and launch methods are GB10's. Pinned by the M17 and M18 gates. LINUX_DRIVER 61 src/omega_blackwell_submit.h CHIP_SPECIFIC Launch constants and executor interface for GB10; includes the realize and matmul headers. NO_HOSTED_INCLUDE 62 src/omega_bw_em.h CHIP_SPECIFIC Private IR emitter helpers for the sm_121 tensor-core generators (scheduling rules proven on the chip). NO_HOSTED_INCLUDE 63 src/omega_bw_em_q.h CHIP_SPECIFIC Private emitters for the FP8 QMMA placeholders (sm_121). NO_HOSTED_INCLUDE 64 src/omega_bw_bind.h CHIP_SPECIFIC Inline wrapper from the Blackwell matmul, realization, encoder and program-sizing callers to the seeded Omega binding unit omega_cg_bind; includes only stdint.h and cudapp_native.h. NO_HOSTED_INCLUDE 65 src/omega_bw_hazard.c CHIP_SPECIFIC Static scoreboard hazard checker over encoded sm_121 kernel bytes (RAW, WAR, WAW against the Blackwell write and read barriers); decodes the operand positions the encoder writes. Includes stdlib.h. HOSTED_LIBC 66 src/omega_bw_hazard.h CHIP_SPECIFIC Interface of the sm_121 scoreboard hazard checker; includes only stddef.h and stdint.h. NO_HOSTED_INCLUDE 67 src/omega_bw_reconv.h CHIP_SPECIFIC Warp reconvergence regions (BSSY, BSYNC) for the Blackwell IR emitters. NO_HOSTED_INCLUDE 68 src/omega_gpu_attention_mirror.h CHIP_SPECIFIC Scoped native attention history placement; declares GPU-private cached-copy behavior and includes omega_gpu_prefill_attn256_api.h. NO_HOSTED_INCLUDE 69 src/omega_gpu_attention_api.c CHIP_SPECIFIC Builds and launches its own sm_121 attention kernels (stall counts as nvcc writes them for sm_121) through the session: the tuned head_dim 64/128 kernels and, since runtime API 0.6.0, the general fallback kernel (head_dim 1..256, any GQA ratio). In the freestanding closure. FREESTANDING_PROVEN 70 src/omega_gpu_attention_api.h CHIP_SPECIFIC Attention API; its kernel type OmegaBlackwellKernel comes from omega_blackwell_matmul.h. NO_HOSTED_INCLUDE 71 src/omega_gpu_bf16_gemv_api.c CHIP_SPECIFIC Launches the bf16 GEMV through a command list; uses the Blackwell bf16 generator. NO_HOSTED_INCLUDE 72 src/omega_gpu_bf16_gemv_api.h CHIP_SPECIFIC bf16 GEMV API; includes omega_blackwell_codegen_bf16.h. NO_HOSTED_INCLUDE 73 src/omega_gpu_cmdlist.c CHIP_SPECIFIC Records launches into one method stream using clcec0 method numbers (WAIT_FOR_IDLE 0x0110, SEND_PCAS_A 0x02b4), the compute-class setup words, and the completion tail with an L2 flush. NO_HOSTED_INCLUDE 74 src/omega_gpu_cmdlist.h CHIP_SPECIFIC Command-list interface; documents the uncached marker page and the L2_FLUSH_DIRTY tail. NO_HOSTED_INCLUDE 75 src/omega_gpu_cmdlist_native.h CHIP_SPECIFIC Private projections of retained Blackwell code, constant banks and mode-final QMD bytes under the existing session lock; conveys no qualification. NO_HOSTED_INCLUDE 76 src/omega_gpu_code_alloc.h CHIP_SPECIFIC Code buffers keep a 2 KB tail after the last instruction because the SM instruction cache prefetches past it (omega#323; the cause on GB10 is INFERRED). NO_HOSTED_INCLUDE 77 src/omega_gpu_decode_attn_api.c CHIP_SPECIFIC Launches the decode attention kernel from the Blackwell generator through a command list. NO_HOSTED_INCLUDE 78 src/omega_gpu_decode_attn_api.h CHIP_SPECIFIC Decode attention API; includes omega_blackwell_codegen_attn.h. NO_HOSTED_INCLUDE 79 src/omega_gpu_decode_graph.c CHIP_SPECIFIC Chains a whole decode token into one command list from Blackwell kernels. HOSTED_LIBC 80 src/omega_gpu_decode_graph.h CHIP_SPECIFIC Decode graph interface over the FP8, router, attention and bf16 GEMV APIs. NO_HOSTED_INCLUDE 81 src/omega_gpu_elementwise_api.c CHIP_SPECIFIC Generates and launches its own elementwise sm_121 kernels; still hosted (stdio, stdlib, time), outside the freestanding closure (boundary doc section 6). HOSTED_LIBC 82 src/omega_gpu_elementwise_api.h CHIP_SPECIFIC Elementwise API; kernel type OmegaBlackwellKernel comes from omega_blackwell_matmul.h. NO_HOSTED_INCLUDE 83 src/omega_gpu_engine.c PORTABLE The engine state machine (open, validate, submit, verify, close, named failure steps). Builds in make gpu-engine-freestanding; errno and the default clock exist only in the hosted build. FREESTANDING_PROVEN 84 src/omega_gpu_engine.h PORTABLE Engine contract and OmegaGpuBackend function table; includes only stddef.h and stdint.h. NO_HOSTED_INCLUDE 85 src/omega_gpu_fmt.c PORTABLE Bounded text formatter that replaces snprintf in the session. Builds in make gpu-engine-freestanding. FREESTANDING_PROVEN 86 src/omega_gpu_fmt.h PORTABLE Formatter interface; includes only stddef.h. NO_HOSTED_INCLUDE 87 src/omega_gpu_fp8_api.c CHIP_SPECIFIC Launches the FP8 GEMV through Blackwell generators and command lists, with GPU-cached weight buffers. HOSTED_LIBC 88 src/omega_gpu_fp8_api.h CHIP_SPECIFIC FP8 GEMV API; includes omega_blackwell_codegen_moe.h. NO_HOSTED_INCLUDE 89 src/omega_gpu_fp8_internal.h CHIP_SPECIFIC Library-internal helpers of omega_gpu_fp8_api.c for the slot pool (GPU-UNCACHED FP8 tensor allocation, CPU views of one expert); includes omega_gpu_fp8_api.h. NO_HOSTED_INCLUDE 90 src/omega_gpu_fp8_slots.c CHIP_SPECIFIC Versioned replaceable FP8 expert slots backed by one OmegaGpuFp8Tensor; uses the session's platform SYNC and the grouped FP8 GEMV launch. Includes stdlib.h. HOSTED_LIBC 91 src/omega_gpu_fp8_slots.h CHIP_SPECIFIC FP8 expert slot pool API (load, pin, entry, evict, grouped GEMV); includes omega_gpu_fp8_api.h. NO_HOSTED_INCLUDE 92 src/omega_gpu_fp8gemm_api.c CHIP_SPECIFIC Launches the FP8 prefill GEMM through the session. HOSTED_LIBC 93 src/omega_gpu_fp8gemm_api.h CHIP_SPECIFIC FP8 GEMM API; includes omega_blackwell_codegen_gemm.h. NO_HOSTED_INCLUDE 94 src/omega_gpu_fp8_pack.c CHIP_SPECIFIC Packs FP8 weights into the layout the sm_121 GEMV kernels read; host side. HOSTED_LIBC 95 src/omega_gpu_hostmath.c PORTABLE Seeded Omega host-math ABI shell with a migration-only C oracle; plain numeric inputs, but the hosted binding uses stdlib for failure handling. HOSTED_LIBC 96 src/omega_gpu_hostmath.h PORTABLE Interface of the libm-free host math; no includes. NO_HOSTED_INCLUDE 97 src/omega_gpu_mathlibs_api.c CHIP_SPECIFIC Builds the GB10 RNG (xoshiro256**, Philox4x32-10 and its cuRAND distributions) and FFT kernels (complex, real R2C/C2R, 2-D/3-D via transposes, cufftPlanMany plans of mixed radix 2/3/4/5/7 and Bluestein passes with strided copies) from om/mathlibs/mathlibs_ir.om, walks the unit's pass plans, fills their constant banks and launches them through the session; still hosted (stdlib, time), outside the freestanding closure; migration-pending C. HOSTED_LIBC 98 src/omega_gpu_mathlibs_api.h PORTABLE Public RNG (xoshiro256**, Philox, Philox distributions) and FFT (C2C, R2C, C2R, 2-D/3-D, plan walk, cufftPlanMany layouts and walk) entry points: plain integer, float and pointer types; includes only stddef.h and stdint.h. NO_HOSTED_INCLUDE 99 src/omega_gpu_matmul_api.c CHIP_SPECIFIC Builds Blackwell matmul kernels, fills the QMD and launches; reports target_chip GB10. In the freestanding closure. FREESTANDING_PROVEN 100 src/omega_gpu_matmul_api.h CHIP_SPECIFIC Public contract exposes Blackwell tile macros TILE_M=16, TILE_N=8, TILE_K=16, chip CTA envelope and GPU-uncached resident storage; plain C types do not make these semantics chip-neutral. NO_HOSTED_INCLUDE 101 src/omega_gpu_mem_cached.c CHIP_SPECIFIC Allocates GPU-cached weight buffers; relies on the GB10 rule that a write-once buffer the CPU never reads cannot hold a stale L2 line. NO_HOSTED_INCLUDE 102 src/omega_gpu_mem_cached.h CHIP_SPECIFIC Documents the GPU-cached read-only weight invariant (nvos.h GPU_CACHEABLE: not coherent with CPU mappings). NO_HOSTED_INCLUDE 103 src/omega_gpu_moe_api.c CHIP_SPECIFIC Launches MoE matmul kernels from the Blackwell generators and the QMD builder. NO_HOSTED_INCLUDE 104 src/omega_gpu_moe_api.h CHIP_SPECIFIC Public packing contract is Blackwell tile-major B with col0 modulo 8 alignment and OMEGA_BW_MATMUL_MAX limits; includes omega_gpu_matmul_api.h. NO_HOSTED_INCLUDE 105 src/omega_gpu_om_ir.c CHIP_SPECIFIC Replays the BlackwellIR records a seeded Omega unit emits into a BlackwellIRProgram, allocates registers and encodes through the .om sm_121 encoder; migration-pending C. In GPU_FS_SRCS since the attention IR lowering; builds in make gpu-engine-freestanding. FREESTANDING_PROVEN 106 src/omega_gpu_om_ir.h CHIP_SPECIFIC Record and meta layout of the .om IR replay; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 107 src/omega_gpu_resident.c CHIP_SPECIFIC Widens descriptor words and invokes seeded Omega validation and the Blackwell IR replay; no hosted includes, not in the freestanding closure. NO_HOSTED_INCLUDE 108 src/omega_gpu_resident.h CHIP_SPECIFIC Internal builder contract for the bounded persistent Blackwell kernel; includes omega_gpu_om_ir.h. NO_HOSTED_INCLUDE 109 src/omega_gpu_native_runtime.h CHIP_SPECIFIC Private binding of exact admitted GB10 artifacts to existing code allocations and generated native lease policy; includes the code-prefetch allocation contract. NO_HOSTED_INCLUDE 110 src/omega_gpu_pfgemm.c CHIP_SPECIFIC Prefill GEMM driver over the Blackwell tensor-core generators. HOSTED_LIBC 111 src/omega_gpu_pfhost.c CHIP_SPECIFIC Prefill router and combine launcher over the Blackwell pfhost generators. NO_HOSTED_INCLUDE 112 src/omega_gpu_pfhost.h CHIP_SPECIFIC Prefill router and combine API; documents bit-exact sm_121 kernel semantics. NO_HOSTED_INCLUDE 113 src/omega_gpu_platform.c PORTABLE Platform contract checks, negotiation and handle table. Builds in make gpu-engine-freestanding. FREESTANDING_PROVEN 114 src/omega_gpu_platform.h CHIP_SPECIFIC ABI 1.2 has reusable typed handles but its current queue_submit contract specifies one GPFIFO entry and its HOST_POLLED rights require the NVIDIA GPU-uncached visibility policy. Device ordinal 0 is documented as the GB10; review this contract on another chip. NO_HOSTED_INCLUDE 115 src/omega_gpu_platform_linux.c CHIP_SPECIFIC The Linux reference platform: nvrm_open and m16_native_create_channel on the NVIDIA open driver. Hosted only, outside the freestanding closure. LINUX_DRIVER 116 src/omega_gpu_platform_linux.h CHIP_SPECIFIC Declares the Linux driver platform; the implementation behind it is the Linux binding. NO_HOSTED_INCLUDE 117 src/omega_gpu_platform_linux_cpolicy.h CHIP_SPECIFIC Omega policy unit declarations for the Linux platform: L2 prefix words, channel count and allocation class. The include guard hides stdint.h and string.h from the portability scan, same as the other headers. NO_HOSTED_INCLUDE 118 src/omega_gpu_prefill_attn_api.c CHIP_SPECIFIC Launches the prefill attention kernel from the Blackwell generator on the session. NO_HOSTED_INCLUDE 119 src/omega_gpu_prefill_attn_api.h CHIP_SPECIFIC Prefill attention API; includes omega_blackwell_codegen_pattn.h. NO_HOSTED_INCLUDE 120 src/omega_gpu_prefill.c CHIP_SPECIFIC Device-resident prefill: GPU-cached device buffers and a copy kernel, with the stale-L2 rules for GB10. NO_HOSTED_INCLUDE 121 src/omega_gpu_prefill.h CHIP_SPECIFIC Documents the prefill memory policy: GPU-cached device-private buffers and L2_FLUSH_DIRTY. NO_HOSTED_INCLUDE 122 src/omega_gpu_router_api.c CHIP_SPECIFIC Launches the router kernel through a command list. NO_HOSTED_INCLUDE 123 src/omega_gpu_router_api.h CHIP_SPECIFIC Router API; includes omega_blackwell_codegen_router.h. NO_HOSTED_INCLUDE 124 src/omega_gpu_serving.c CHIP_SPECIFIC Thin wrapper calls omega_gpu_matmul_reserve and the current attention reservation APIs with their chip-specific contracts; it does not implement an independent generic accounting layer. OS-free in make gpu-engine-freestanding. FREESTANDING_PROVEN 125 src/omega_gpu_serving.h CHIP_SPECIFIC Current GB10 serving contract delegates to chip-specific matmul/attention reservations and documents at-most-16-row handling and fixed kernel-cache defaults/limits; absence of hosted includes is not a chip-neutral contract. NO_HOSTED_INCLUDE 126 src/omega_gpu_session.c CHIP_SPECIFIC The persistent session over OmegaGpuPlatform. OS-free (in the freestanding closure) but carries GB10 constants: the compute-class setup words (class 0xcec0), the cache-invalidate method 0x021c, launch constants from omega_blackwell_submit.h. FREESTANDING_PROVEN 127 src/omega_gpu_session.h CHIP_SPECIFIC Session exposes QMD scratch, register-count rules and QMD shared-memory default 1024, plus the GB10 two-marker/L2 flush launch protocol; platform handles remove OS types, not chip assumptions. NO_HOSTED_INCLUDE 128 src/omega_gpu_tcgemm_api.c CHIP_SPECIFIC Launches the tensor-core GEMM through the session. HOSTED_LIBC 129 src/omega_gpu_tcgemm_api.h CHIP_SPECIFIC Tensor-core GEMM API; includes omega_blackwell_codegen_tc.h. NO_HOSTED_INCLUDE 130 src/omega_gpu_tgemm_api.c CHIP_SPECIFIC Launches the bf16 training GEMM through the session and the prefill module's resident-kernel cache (omega_gpu_prefill.h). NO_HOSTED_INCLUDE 131 src/omega_gpu_tgemm_api.h CHIP_SPECIFIC bf16 training GEMM API; includes omega_blackwell_codegen_tgemm.h. NO_HOSTED_INCLUDE 132 src/omega_gpu_tern_api.c CHIP_SPECIFIC Launches the ternary GEMV with GPU-cached weights through a command list. HOSTED_LIBC 133 src/omega_gpu_tern_api.h CHIP_SPECIFIC Ternary GEMV API; includes omega_blackwell_codegen_tern.h. NO_HOSTED_INCLUDE 134 src/omega_gpu_wait.c PORTABLE Bounded wait with a caller-supplied clock and hooks; no default clock in the freestanding build. Builds in make gpu-engine-freestanding. FREESTANDING_PROVEN 135 src/omega_gpu_wait.h PORTABLE Bounded wait interface; includes only stdbool.h and stdint.h. NO_HOSTED_INCLUDE 136 src/omega_gpu_chip.c CHIP_SPECIFIC The qualified-chip table (GB10, PCI 10de:2e12, with its receipt) and the refusal text for any other NVIDIA GPU; scans /sys/bus/pci/devices with stdio and dirent. Library admission at device open (nvrm_open): packs the PCI functions it read and asks the Omega unit om/admission/chip_admit.om (omega_chip_admit) which GPU is admitted, then words the refusal. Developer bars D2 and D6. HOSTED_LIBC 137 src/omega_gpu_chip.h PORTABLE Types and declarations for the chip table, the PCI scan and the admission result; no chip constant, no driver header. NO_HOSTED_INCLUDE 138 src/omega_gpu_mem_reserve.c CHIP_SPECIFIC Developer bar D1: refuses an allocation that would leave less than CUDAPP_MEM_RESERVE_MIB free; reads Linux /proc/meminfo (O_NOFOLLOW, fstat regular-file check) or a regular file a test names by code through omega_gpu_platform_linux_test_set_meminfo. No chip knowledge; a Linux binding shared by both hosted platforms. LINUX_DRIVER 139 src/omega_gpu_mem_reserve.h PORTABLE Declares the D1 reserve check. NO_HOSTED_INCLUDE 140 src/omega_gpu_platform_aien.c CHIP_SPECIFIC The aien-gpu platform: the contract over aien-gpu.ko compute ABI 1 (/dev/aien-gpu), GPFIFO, USERD and doorbell written by the CPU. Hosted only, outside the freestanding closure. Hardware NOT_RUN. LINUX_DRIVER 141 src/omega_gpu_platform_aien.h CHIP_SPECIFIC Declares the aien-gpu platform, its GPFIFO/USERD/doorbell layout and the system-call hook for host tests. NO_HOSTED_INCLUDE 142 src/omega_gpu_decode_attn256_api.c CHIP_SPECIFIC Keeps the KV cache and RoPE table resident and launches the head_dim 256 decode attention kernel through a command list. NO_HOSTED_INCLUDE 143 src/omega_gpu_decode_attn256_api.h CHIP_SPECIFIC Head_dim 256 decode attention API; includes omega_blackwell_codegen_attn256.h. NO_HOSTED_INCLUDE 144 src/omega_gpu_gdn_api.c CHIP_SPECIFIC Keeps Gated DeltaNet parameters and states resident and launches the decode step from the Blackwell generator. HOSTED_LIBC 145 src/omega_gpu_gdn_api.h CHIP_SPECIFIC Gated DeltaNet decode API; includes omega_blackwell_codegen_gdn.h. NO_HOSTED_INCLUDE 146 src/omega_gpu_gemm.c CHIP_SPECIFIC Builds and launches tensor-core GEMM kernels of any shape for the GB10 from Omega's IR emitters. HOSTED_LIBC 147 src/omega_gpu_gemm.h CHIP_SPECIFIC GEMM API; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 148 src/omega_gpu_gemm_ex.c CHIP_SPECIFIC General GEMM entry (op N/T, leading dimensions, alpha/beta, strided batch, bf16/f16/f32 via bf16x3/fp8 with scales) over the GB10 tensor-core GEMM: the memory shell of the seeded Omega units om/gemmex (src/cudapp_om_gemm_ex_*.c), with the old C kept as migration-pending differential oracle (CUDAPP_MIGRATION_PENDING_GEMM_EX); hosted failure handling includes stdlib. HOSTED_LIBC 149 src/omega_gpu_gemm_ex.h CHIP_SPECIFIC General GEMM API; includes omega_gpu_gemm.h. NO_HOSTED_INCLUDE 150 src/omega_gpu_prefill_attn256_api.c CHIP_SPECIFIC Launches the two head_dim 256 prefill attention kernels from the Blackwell generator through a command list. NO_HOSTED_INCLUDE 151 src/omega_gpu_prefill_attn256_api.h CHIP_SPECIFIC Head_dim 256 prefill attention API; includes omega_blackwell_codegen_pattn256.h. NO_HOSTED_INCLUDE 152 src/omega_gpu_q36_graph.c CHIP_SPECIFIC Chains a whole Qwen3.6-35B-A3B decode token into one command list from Blackwell kernels. HOSTED_LIBC 153 src/omega_gpu_q36_graph.h CHIP_SPECIFIC Qwen3.6 decode graph interface over the decode graph, attention, Gated DeltaNet and router APIs. NO_HOSTED_INCLUDE 154 src/omega_gpu_q36_native.h CHIP_SPECIFIC Private Qwen3.6 graph and router-owner projections for Blackwell record binding; no independent qualification or signer. NO_HOSTED_INCLUDE 155 src/omega_gpu_q38_graph.c CHIP_SPECIFIC Chains a whole Qwen3.8-27B decode token into one command list from Blackwell kernels. HOSTED_LIBC 156 src/omega_gpu_q38_graph.h CHIP_SPECIFIC Qwen3.8 decode graph interface over the decode graph, attention and Gated DeltaNet APIs. NO_HOSTED_INCLUDE 157 src/omega_gpu_scan.c CHIP_SPECIFIC Replays the seeded Omega scan and radix-sort kernels (om/scan/scan_ir.om) and launch plans (om/scan/scan_plan.om) for the GB10, runs a plan through a launch callback and stages the calls on the chip; the migration-pending C generator is compiled only as the differential oracle. HOSTED_LIBC 158 src/omega_gpu_scan.h CHIP_SPECIFIC Reduction, prefix-sum (f32, u32) and stable radix-sort API, kernel kinds and launch-plan layout; includes omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 159 src/omega_gpu_scan_ref.c PORTABLE Host references of the frozen reduction and prefix-sum order, which depends only on n and the element index (docs/numeric/E1_REDUCTION_CONTRACT.md), the u32 prefix sum and the stable LSD radix sort; plain C, no chip or OS call. Its own header omega_gpu_scan.h still pulls in omega_blackwell_codegen.h, so reusing it off this tree needs the declarations split out. HOSTED_LIBC 160 src/omega_gpu_attn_any_api.c CHIP_SPECIFIC Memory and session-launch shell for the seeded Omega sm_121 arbitrary-shape attention emitter. HOSTED_LIBC 161 src/omega_gpu_attn_any_api.h CHIP_SPECIFIC Experimental attention interface and CPU-only Blackwell IR generation hook. NO_HOSTED_INCLUDE 162 src/omega_gpu_dnn_types.h PORTABLE Scalar storage-format constants only; no chip or driver definitions and no includes. NO_HOSTED_INCLUDE 163 src/omega_gpu_dnn_rows_api.c CHIP_SPECIFIC Memory and session-launch shell for seeded Omega sm_121 row softmax and normalization kernels. HOSTED_LIBC 164 src/omega_gpu_dnn_rows_api.h CHIP_SPECIFIC Row normalization interface exposes the Blackwell kernel type through omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 165 src/omega_gpu_dnn_activations_api.c CHIP_SPECIFIC Memory and session-launch shell for seeded Omega sm_121 activation kernels. HOSTED_LIBC 166 src/omega_gpu_dnn_activations_api.h CHIP_SPECIFIC Activation interface exposes the Blackwell kernel type through omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 167 src/omega_gpu_conv2d_api.c CHIP_SPECIFIC Memory and session-launch shell for the seeded Omega sm_121 implicit-GEMM convolution emitter. HOSTED_LIBC 168 src/omega_gpu_conv2d_api.h CHIP_SPECIFIC Convolution interface exposes the Blackwell kernel type through omega_blackwell_codegen.h. NO_HOSTED_INCLUDE 169 src/omega_gpu_apiviews.h PORTABLE Host data-loop ABI projections for seeded Omega API residue, with stdio/stdlib differential-failure handling; no device or chip headers. HOSTED_LIBC 170 src/omega_gpu_gdn_admit.c CHIP_SPECIFIC Gated DeltaNet admission/layout shell and migration-only C oracle; includes math.h for finite-value checks and the GDN chip API. HOSTED_LIBC 171 src/omega_gpu_gdn_admit.h CHIP_SPECIFIC Gated DeltaNet admission/layout interface exposes Blackwell GDN shape types. NO_HOSTED_INCLUDE 172 src/omega_gpu_api_hostrest.h PORTABLE Scalar seeded Omega host-residue ABI helpers with migration-only C oracle; hosted stdlib/stdio failure handling, no chip headers. HOSTED_LIBC 173 src/omega_gpu_mathlibs_host.h PORTABLE Seeded Omega mathlibs scalar/admission ABI helpers; stdlib failure handling, no chip headers. HOSTED_LIBC 174 src/omega_gpu_mathlibs_host.inc CHIP_SPECIFIC Included mathlibs plan/effect shell launches GB10 RNG and FFT kernels under the session lock; no direct hosted includes. NO_HOSTED_INCLUDE 175 src/omega_gpu_graph_om.h PORTABLE Graph-node and address ABI projections to seeded Omega over raw integer/float-bit records; no chip or driver includes. NO_HOSTED_INCLUDE 176 src/omega_gpu_graph_residue.h PORTABLE Graph metadata ABI projections to seeded Omega with stdlib failure handling and a migration-only C oracle. HOSTED_LIBC 177 src/omega_gpu_platform_linux_rest_oracle.h PORTABLE Migration-only scalar oracle for platform decisions; uint64_t records, no Linux or device includes. NO_HOSTED_INCLUDE 178 src/omega_bw_fields.h CHIP_SPECIFIC Blackwell IR record projections for seeded Omega cg_fields; includes the Blackwell instruction definitions. NO_HOSTED_INCLUDE 179 src/omega_bw_policy.h CHIP_SPECIFIC Blackwell scalar policy and identity ABI projections to seeded Omega; no hosted includes. NO_HOSTED_INCLUDE