aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / crates / aien-omega-gpu / abi / omega_gpu.manifest
| 1 | # The omega GPU engine C ABI (libomega_gpu.a) that aien-omega-gpu mirrors in src/ffi.rs. |
| 2 | # Checked from both sides: tests/abi_manifest.rs (Rust declarations, every build) and build.rs |
| 3 | # (pinned C headers, compiled layout probe, archive symbols). |
| 4 | # Format: aien-abi-conformance src/manifest.rs. Regenerate the fact lines from Rust with |
| 5 | # AIEN_ABI_BLESS=1 cargo test -p aien-omega-gpu --test abi_manifest |
| 6 | # only together with the omega.lock change that makes the C side agree. |
| 7 | abi omega_gpu 1 |
| 8 | header src/omega_gpu_matmul_api.h |
| 9 | header src/omega_gpu_session.h |
| 10 | header src/omega_gpu_serving.h |
| 11 | header src/omega_gpu_elementwise_api.h |
| 12 | header src/omega_gpu_attention_api.h |
| 13 | struct OmegaGpuMatmulInfo 160 8 |
| 14 | field OmegaGpuMatmulInfo m 0 4 u32 1 |
| 15 | field OmegaGpuMatmulInfo k 4 4 u32 1 |
| 16 | field OmegaGpuMatmulInfo n 8 4 u32 1 |
| 17 | field OmegaGpuMatmulInfo padded_m 12 4 u32 1 |
| 18 | field OmegaGpuMatmulInfo padded_n 16 4 u32 1 |
| 19 | field OmegaGpuMatmulInfo k_slices 20 4 u32 1 |
| 20 | field OmegaGpuMatmulInfo chip_calls 24 4 u32 1 |
| 21 | field OmegaGpuMatmulInfo rows_per_call 28 4 u32 1 |
| 22 | field OmegaGpuMatmulInfo elapsed_ns 32 8 u64 1 |
| 23 | field OmegaGpuMatmulInfo max_abs_err 40 4 f32 1 |
| 24 | field OmegaGpuMatmulInfo max_rel_err 44 4 f32 1 |
| 25 | field OmegaGpuMatmulInfo mismatch_count 48 8 u64 1 |
| 26 | field OmegaGpuMatmulInfo parity_verified 56 1 bool 1 |
| 27 | field OmegaGpuMatmulInfo completion_marker 60 4 u32 1 |
| 28 | field OmegaGpuMatmulInfo kernel_cache_hit 64 1 bool 1 |
| 29 | field OmegaGpuMatmulInfo target_chip 65 64 c_char 64 |
| 30 | field OmegaGpuMatmulInfo sm_architecture 132 4 u32 1 |
| 31 | field OmegaGpuMatmulInfo grid_x 136 4 u32 1 |
| 32 | field OmegaGpuMatmulInfo grid_y 140 4 u32 1 |
| 33 | field OmegaGpuMatmulInfo padded_k 144 4 u32 1 |
| 34 | field OmegaGpuMatmulInfo resident 148 1 bool 1 |
| 35 | field OmegaGpuMatmulInfo oracle_ran 149 1 bool 1 |
| 36 | field OmegaGpuMatmulInfo call_ns 152 8 u64 1 |
| 37 | struct OmegaGpuAllocStats 40 8 |
| 38 | field OmegaGpuAllocStats allocs 0 8 u64 1 |
| 39 | field OmegaGpuAllocStats alloc_bytes 8 8 u64 1 |
| 40 | field OmegaGpuAllocStats alloc_failures 16 8 u64 1 |
| 41 | field OmegaGpuAllocStats frees 24 8 u64 1 |
| 42 | field OmegaGpuAllocStats stale_refusals 32 8 u64 1 |
| 43 | struct OmegaGpuServingBounds 44 4 |
| 44 | field OmegaGpuServingBounds max_context 0 4 u32 1 |
| 45 | field OmegaGpuServingBounds max_seqs 4 4 u32 1 |
| 46 | field OmegaGpuServingBounds num_q_heads 8 4 u32 1 |
| 47 | field OmegaGpuServingBounds num_kv_heads 12 4 u32 1 |
| 48 | field OmegaGpuServingBounds head_dim 16 4 u32 1 |
| 49 | field OmegaGpuServingBounds kv_block_size 20 4 u32 1 |
| 50 | field OmegaGpuServingBounds max_rows 24 4 u32 1 |
| 51 | field OmegaGpuServingBounds max_k 28 4 u32 1 |
| 52 | field OmegaGpuServingBounds max_n 32 4 u32 1 |
| 53 | field OmegaGpuServingBounds max_n_one_row 36 4 u32 1 |
| 54 | field OmegaGpuServingBounds kernel_slots 40 4 u32 1 |
| 55 | struct OmegaGpuEwInfo 120 8 |
| 56 | field OmegaGpuEwInfo chip_calls 0 4 u32 1 |
| 57 | field OmegaGpuEwInfo elapsed_ns 8 8 u64 1 |
| 58 | field OmegaGpuEwInfo completion_marker 16 4 u32 1 |
| 59 | field OmegaGpuEwInfo unwritten_words 20 4 u32 1 |
| 60 | field OmegaGpuEwInfo kernel_cache_hit 24 1 bool 1 |
| 61 | field OmegaGpuEwInfo gpr_count 28 4 u32 1 |
| 62 | field OmegaGpuEwInfo insn_count 32 4 u32 1 |
| 63 | field OmegaGpuEwInfo threads_per_cta 36 4 u32 1 |
| 64 | field OmegaGpuEwInfo ctas_last_launch 40 4 u32 1 |
| 65 | field OmegaGpuEwInfo target_chip 44 64 c_char 64 |
| 66 | field OmegaGpuEwInfo sm_architecture 108 4 u32 1 |
| 67 | field OmegaGpuEwInfo call_ns 112 8 u64 1 |
| 68 | struct OmegaGpuAttnInfo 176 8 |
| 69 | field OmegaGpuAttnInfo chip_calls 0 4 u32 1 |
| 70 | field OmegaGpuAttnInfo elapsed_ns 8 8 u64 1 |
| 71 | field OmegaGpuAttnInfo call_ns 16 8 u64 1 |
| 72 | field OmegaGpuAttnInfo completion_marker 24 4 u32 1 |
| 73 | field OmegaGpuAttnInfo unwritten_words 28 4 u32 1 |
| 74 | field OmegaGpuAttnInfo gpr_count 32 4 u32 1 |
| 75 | field OmegaGpuAttnInfo insn_count 36 4 u32 1 |
| 76 | field OmegaGpuAttnInfo kernel_cache_hit 40 1 bool 1 |
| 77 | field OmegaGpuAttnInfo ctas_last_launch 44 4 u32 1 |
| 78 | field OmegaGpuAttnInfo threads_per_cta 48 4 u32 1 |
| 79 | field OmegaGpuAttnInfo target_chip 52 64 c_char 64 |
| 80 | field OmegaGpuAttnInfo sm_architecture 116 4 u32 1 |
| 81 | field OmegaGpuAttnInfo kv_bytes_staged 120 8 u64 1 |
| 82 | field OmegaGpuAttnInfo kv_bytes_naive 128 8 u64 1 |
| 83 | field OmegaGpuAttnInfo kv_blocks_logical 136 4 u32 1 |
| 84 | field OmegaGpuAttnInfo kv_blocks_unique 140 4 u32 1 |
| 85 | field OmegaGpuAttnInfo q_bytes 144 8 u64 1 |
| 86 | field OmegaGpuAttnInfo tab_bytes 152 8 u64 1 |
| 87 | field OmegaGpuAttnInfo out_bytes 160 8 u64 1 |
| 88 | field OmegaGpuAttnInfo kv_source 168 4 u32 1 |
| 89 | struct OmegaGpuKvLayout 64 8 |
| 90 | field OmegaGpuKvLayout block_stride_bytes 0 8 u64 1 |
| 91 | field OmegaGpuKvLayout layer_stride_bytes 8 8 u64 1 |
| 92 | field OmegaGpuKvLayout kv_plane_stride_bytes 16 8 u64 1 |
| 93 | field OmegaGpuKvLayout token_stride_bytes 24 8 u64 1 |
| 94 | field OmegaGpuKvLayout head_stride_bytes 32 8 u64 1 |
| 95 | field OmegaGpuKvLayout pool_bytes 40 8 u64 1 |
| 96 | field OmegaGpuKvLayout num_blocks 48 4 u32 1 |
| 97 | field OmegaGpuKvLayout num_layers 52 4 u32 1 |
| 98 | field OmegaGpuKvLayout block_size 56 4 u32 1 |
| 99 | const OMEGA_GPU_MATMUL_OK 0 |
| 100 | const OMEGA_GPU_MATMUL_BAD_ARGS -1 |
| 101 | const OMEGA_GPU_MATMUL_TOO_LARGE -2 |
| 102 | const OMEGA_GPU_MATMUL_CODEGEN_FAIL -3 |
| 103 | const OMEGA_GPU_MATMUL_CHIP_FAIL -4 |
| 104 | const OMEGA_GPU_MATMUL_PARITY_FAIL -5 |
| 105 | const OMEGA_GPU_MATMUL_TILE_M 16 |
| 106 | const OMEGA_GPU_MATMUL_TILE_N 8 |
| 107 | const OMEGA_GPU_MATMUL_TILE_K 16 |
| 108 | const OMEGA_GPU_MATMUL_MAX_CTAS 1024 |
| 109 | const OMEGA_GPU_EW_OK 0 |
| 110 | const OMEGA_GPU_EW_BAD_ARGS -1 |
| 111 | const OMEGA_GPU_EW_TOO_LARGE -2 |
| 112 | const OMEGA_GPU_EW_CODEGEN_FAIL -3 |
| 113 | const OMEGA_GPU_EW_CHIP_FAIL -4 |
| 114 | const OMEGA_GPU_EW_UNWRITTEN -5 |
| 115 | const OMEGA_GPU_ATTN_OK 0 |
| 116 | const OMEGA_GPU_ATTN_BAD_ARGS -1 |
| 117 | const OMEGA_GPU_ATTN_TOO_LARGE -2 |
| 118 | const OMEGA_GPU_ATTN_CODEGEN_FAIL -3 |
| 119 | const OMEGA_GPU_ATTN_CHIP_FAIL -4 |
| 120 | const OMEGA_GPU_ATTN_UNWRITTEN -5 |
| 121 | const OMEGA_GPU_ATTN_KV_STAGED 0 |
| 122 | fn omega_gpu_matmul_bf16 fn(u32, u32, u32, *const u16, *const u16, *mut f32, *mut OmegaGpuMatmulInfo) -> i32 |
| 123 | fn omega_gpu_matmul_f32 fn(u32, u32, u32, *const f32, *const f32, *mut f32, *mut OmegaGpuMatmulInfo) -> i32 |
| 124 | fn omega_gpu_matmul_rc_name fn(i32) -> *const c_char |
| 125 | fn omega_gpu_matmul_cache_clear fn() -> () |
| 126 | fn omega_gpu_tensor_upload_bf16 fn(u32, u32, *const u16, *mut *mut OmegaGpuTensor) -> i32 |
| 127 | fn omega_gpu_tensor_upload_f32 fn(u32, u32, *const f32, *mut *mut OmegaGpuTensor) -> i32 |
| 128 | fn omega_gpu_tensor_free fn(*mut OmegaGpuTensor) -> () |
| 129 | fn omega_gpu_tensor_shape fn(*const OmegaGpuTensor, *mut u32, *mut u32) -> () |
| 130 | fn omega_gpu_matmul_resident_bf16 fn(u32, *const u16, *const OmegaGpuTensor, *mut f32, *mut OmegaGpuMatmulInfo) -> i32 |
| 131 | fn omega_gpu_matmul_resident_f32 fn(u32, *const f32, *const OmegaGpuTensor, *mut f32, *mut OmegaGpuMatmulInfo) -> i32 |
| 132 | fn omega_gpu_matmul_last_error fn() -> *const c_char |
| 133 | fn omega_gpu_matmul_is_blocked fn() -> i32 |
| 134 | fn omega_gpu_device_close fn() -> () |
| 135 | fn omega_gpu_matmul_set_cta_budget fn(u32) -> () |
| 136 | fn omega_gpu_matmul_cta_budget fn() -> u32 |
| 137 | fn omega_gpu_session_set_spin_us fn(u32) -> i32 |
| 138 | fn omega_gpu_session_spin_us fn() -> u32 |
| 139 | fn omega_gpu_reserve_serving fn(*const OmegaGpuServingBounds) -> i32 |
| 140 | fn omega_gpu_serving_release fn() -> () |
| 141 | fn omega_gpu_matmul_prepare fn(u32, u32, u32) -> i32 |
| 142 | fn omega_gpu_serving_seal fn() -> () |
| 143 | fn omega_gpu_session_alloc_stats fn(*mut OmegaGpuAllocStats) -> () |
| 144 | fn omega_gpu_rmsnorm_f32 fn(u32, u32, *const f32, *const f32, f32, *mut f32, *mut OmegaGpuEwInfo) -> i32 |
| 145 | fn omega_gpu_rope_f32 fn(u32, u32, *const f32, *const f32, *const f32, *mut f32, *mut OmegaGpuEwInfo) -> i32 |
| 146 | fn omega_gpu_swiglu_f32 fn(u32, *const f32, *const f32, *mut f32, *mut OmegaGpuEwInfo) -> i32 |
| 147 | fn omega_gpu_elementwise_rc_name fn(i32) -> *const c_char |
| 148 | fn omega_gpu_gqa_attention_f32 fn(*const f32, *const f32, *const f32, u32, u32, u32, u32, *mut f32, *mut OmegaGpuAttnInfo) -> i32 |
| 149 | fn omega_gpu_gqa_attention_rows_f32 fn(*const f32, *const f32, *const f32, u32, u32, u32, u32, u32, *mut f32, *mut OmegaGpuAttnInfo) -> i32 |
| 150 | fn omega_gpu_attention_pool_alloc fn(usize, *mut *mut c_void) -> i32 |
| 151 | fn omega_gpu_attention_pool_free fn() -> () |
| 152 | fn omega_gpu_paged_attention_bf16 fn(*const f32, *const c_void, *const OmegaGpuKvLayout, *const u32, u32, u32, u32, u32, u32, u32, *mut f32, *mut OmegaGpuAttnInfo) -> i32 |
| 153 | fn omega_gpu_paged_attention_batch_bf16 fn(*const f32, *const c_void, *const OmegaGpuKvLayout, *const i32, *const i32, u32, u32, u32, u32, u32, u32, *mut f32, *mut OmegaGpuAttnInfo) -> i32 |
| 154 | fn omega_gpu_attention_rc_name fn(i32) -> *const c_char |
| 155 | fn omega_gpu_attention_last_error fn() -> *const c_char |