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
omega-mv / docs / runtime / omega_runtime_api.manifest
| 1 | # Omega Runtime API manifest: the canonical list of the C entries that docs/runtime/API.md describes. |
| 2 | # Canonical from R1 (2026-10-19): Omega's copy leads; aien-sovereign-core's crates/aien-omega-gpu/abi/omega_gpu.manifest |
| 3 | # must match it (R12 checks that). The part from "libraries" down to the end of the `fn` lines of those headers was |
| 4 | # copied from that file at aien-sovereign-core origin/main (see the "carried over" comment below) and kept unchanged. |
| 5 | # Line format = aien-abi-conformance src/manifest.rs (header, struct, field, const, fn); `#` starts a comment. |
| 6 | # Additions to that format, all inside comments or in the free `kind` column, so its parser still reads the file: |
| 7 | # - every `struct` and `fn` line ends with a tier comment: `# STABLE` or `# EXPERIMENTAL` (INTERNAL entries are not listed); |
| 8 | # - field kinds beyond its list: `ptr` (any pointer, 8 bytes), `enum` (4 bytes), `struct:Name` (a struct by value); |
| 9 | # `usize`/size_t fields are written `u64` (LP64), as it does. |
| 10 | # Checked by tools/runtime_api_check.sh (make test-runtime-api): every `fn` against its header with the exact types, |
| 11 | # every size, offset and constant against a compiled probe, the version macros against src/omega_runtime_api.h. |
| 12 | # After a deliberate header change: edit the line here, run `tools/runtime_api_check.sh --bless` to refresh numbers, review the diff. |
| 13 | abi omega_runtime 0.1 |
| 14 | header src/omega_runtime_api.h |
| 15 | header src/omega_gpu_platform.h |
| 16 | header src/omega_gpu_session.h |
| 17 | header src/omega_gpu_mem_cached.h |
| 18 | header src/omega_gpu_cmdlist.h |
| 19 | header src/omega_gpu_engine.h |
| 20 | header src/omega_gpu_matmul_api.h |
| 21 | header src/omega_gpu_serving.h |
| 22 | header src/omega_gpu_elementwise_api.h |
| 23 | header src/omega_gpu_attention_api.h |
| 24 | # ---- version ---- |
| 25 | const OMEGA_RUNTIME_API_VERSION_MAJOR 0 |
| 26 | const OMEGA_RUNTIME_API_VERSION_MINOR 1 |
| 27 | # ---- platform contract (src/omega_gpu_platform.h, ABI 1.2) ---- |
| 28 | struct OmegaGpuDeviceHandle 8 4 # STABLE |
| 29 | field OmegaGpuDeviceHandle index 0 4 u32 1 |
| 30 | field OmegaGpuDeviceHandle generation 4 4 u32 1 |
| 31 | struct OmegaGpuBufferHandle 8 4 # STABLE |
| 32 | field OmegaGpuBufferHandle index 0 4 u32 1 |
| 33 | field OmegaGpuBufferHandle generation 4 4 u32 1 |
| 34 | struct OmegaGpuQueueHandle 8 4 # STABLE |
| 35 | field OmegaGpuQueueHandle index 0 4 u32 1 |
| 36 | field OmegaGpuQueueHandle generation 4 4 u32 1 |
| 37 | struct OmegaCpuView 16 8 # EXPERIMENTAL |
| 38 | field OmegaCpuView ptr 0 8 ptr 1 |
| 39 | field OmegaCpuView len 8 8 u64 1 |
| 40 | struct OmegaGpuVa 8 8 # EXPERIMENTAL |
| 41 | field OmegaGpuVa va 0 8 u64 1 |
| 42 | struct OmegaGpuBusAddr 8 8 # EXPERIMENTAL |
| 43 | field OmegaGpuBusAddr iova 0 8 u64 1 |
| 44 | struct OmegaGpuBufferDesc 24 8 # EXPERIMENTAL |
| 45 | field OmegaGpuBufferDesc kind 0 4 u32 1 |
| 46 | field OmegaGpuBufferDesc rights 4 4 u32 1 |
| 47 | field OmegaGpuBufferDesc gpu_cache 8 4 u32 1 |
| 48 | field OmegaGpuBufferDesc align 12 4 u32 1 |
| 49 | field OmegaGpuBufferDesc bytes 16 8 u64 1 |
| 50 | struct OmegaGpuPlatformCaps 56 8 # EXPERIMENTAL |
| 51 | field OmegaGpuPlatformCaps abi_major 0 4 u32 1 |
| 52 | field OmegaGpuPlatformCaps abi_minor 4 4 u32 1 |
| 53 | field OmegaGpuPlatformCaps services 8 4 u32 1 |
| 54 | field OmegaGpuPlatformCaps max_devices 12 4 u32 1 |
| 55 | field OmegaGpuPlatformCaps max_buffers 16 4 u32 1 |
| 56 | field OmegaGpuPlatformCaps max_queues 20 4 u32 1 |
| 57 | field OmegaGpuPlatformCaps max_inflight 24 4 u32 1 |
| 58 | field OmegaGpuPlatformCaps max_buffer_bytes 32 8 u64 1 |
| 59 | field OmegaGpuPlatformCaps max_total_bytes 40 8 u64 1 |
| 60 | field OmegaGpuPlatformCaps submit_prefix_words 48 4 u32 1 |
| 61 | struct OmegaGpuPlatform 184 8 # EXPERIMENTAL |
| 62 | field OmegaGpuPlatform ctx 0 8 ptr 1 |
| 63 | field OmegaGpuPlatform time_now_ms 8 8 ptr 1 |
| 64 | field OmegaGpuPlatform wait_ms 16 8 ptr 1 |
| 65 | field OmegaGpuPlatform lock 24 8 ptr 1 |
| 66 | field OmegaGpuPlatform unlock 32 8 ptr 1 |
| 67 | field OmegaGpuPlatform mmio_read32 40 8 ptr 1 |
| 68 | field OmegaGpuPlatform mmio_write32 48 8 ptr 1 |
| 69 | field OmegaGpuPlatform dma_alloc 56 8 ptr 1 |
| 70 | field OmegaGpuPlatform dma_free 64 8 ptr 1 |
| 71 | field OmegaGpuPlatform sync_cpu_to_gpu 72 8 ptr 1 |
| 72 | field OmegaGpuPlatform sync_gpu_to_cpu 80 8 ptr 1 |
| 73 | field OmegaGpuPlatform poll_word 88 8 ptr 1 |
| 74 | field OmegaGpuPlatform irq_wait 96 8 ptr 1 |
| 75 | field OmegaGpuPlatform device_open 104 8 ptr 1 |
| 76 | field OmegaGpuPlatform device_close 112 8 ptr 1 |
| 77 | field OmegaGpuPlatform diag_text 120 8 ptr 1 |
| 78 | field OmegaGpuPlatform queue_open 128 8 ptr 1 |
| 79 | field OmegaGpuPlatform queue_close 136 8 ptr 1 |
| 80 | field OmegaGpuPlatform queue_submit 144 8 ptr 1 |
| 81 | field OmegaGpuPlatform queue_retire 152 8 ptr 1 |
| 82 | field OmegaGpuPlatform time_now_ns 160 8 ptr 1 |
| 83 | field OmegaGpuPlatform host_alloc 168 8 ptr 1 |
| 84 | field OmegaGpuPlatform host_free 176 8 ptr 1 |
| 85 | struct OmegaGpuHandleTable 69648 8 # EXPERIMENTAL |
| 86 | field OmegaGpuHandleTable generation 0 16384 u32 4096 |
| 87 | field OmegaGpuHandleTable kind 16384 16384 u32 4096 |
| 88 | field OmegaGpuHandleTable bytes 32768 32768 u64 4096 |
| 89 | field OmegaGpuHandleTable live 65536 4096 u8 4096 |
| 90 | field OmegaGpuHandleTable nlive 69632 4 u32 1 |
| 91 | field OmegaGpuHandleTable total_bytes 69640 8 u64 1 |
| 92 | fn omega_gpu_platform_refusal_name fn(i32) -> *const c_char # EXPERIMENTAL |
| 93 | fn omega_gpu_platform_negotiate fn(*const OmegaGpuPlatformCaps, *const OmegaGpuPlatformCaps) -> i32 # EXPERIMENTAL |
| 94 | fn omega_gpu_platform_check fn(*const OmegaGpuPlatform, *const OmegaGpuPlatformCaps) -> i32 # EXPERIMENTAL |
| 95 | fn omega_gpu_platform_check_for fn(*const OmegaGpuPlatform, *const OmegaGpuPlatformCaps, u32) -> i32 # EXPERIMENTAL |
| 96 | fn omega_gpu_platform_check_buffer fn(*const OmegaGpuBufferDesc, *const OmegaGpuPlatformCaps) -> i32 # EXPERIMENTAL |
| 97 | fn omega_gpu_handles_init fn(*mut OmegaGpuHandleTable) -> () # EXPERIMENTAL |
| 98 | fn omega_gpu_handles_open fn(*mut OmegaGpuHandleTable, u32, u64, u32, u64, *mut u32, *mut u32) -> i32 # EXPERIMENTAL |
| 99 | fn omega_gpu_handles_check fn(*const OmegaGpuHandleTable, u32, u32, u32) -> i32 # EXPERIMENTAL |
| 100 | fn omega_gpu_handles_close fn(*mut OmegaGpuHandleTable, u32, u32, u32) -> i32 # EXPERIMENTAL |
| 101 | # ---- session: device, memory, launch, errors (src/omega_gpu_session.h, src/omega_gpu_mem_cached.h) ---- |
| 102 | struct OmegaGpuMem 40 8 # STABLE |
| 103 | field OmegaGpuMem handle 0 8 struct:OmegaGpuBufferHandle 1 |
| 104 | field OmegaGpuMem kind 8 4 u32 1 |
| 105 | field OmegaGpuMem cpu 16 8 ptr 1 |
| 106 | field OmegaGpuMem va 24 8 u64 1 |
| 107 | field OmegaGpuMem size 32 8 u64 1 |
| 108 | struct OmegaGpuSession 192 8 # EXPERIMENTAL |
| 109 | field OmegaGpuSession dev 0 8 struct:OmegaGpuDeviceHandle 1 |
| 110 | field OmegaGpuSession queue 8 8 struct:OmegaGpuQueueHandle 1 |
| 111 | field OmegaGpuSession pb 16 40 struct:OmegaGpuMem 1 |
| 112 | field OmegaGpuSession cbank 56 40 struct:OmegaGpuMem 1 |
| 113 | field OmegaGpuSession marker 96 40 struct:OmegaGpuMem 1 |
| 114 | field OmegaGpuSession qmd 136 40 struct:OmegaGpuMem 1 |
| 115 | field OmegaGpuSession opens 176 4 u32 1 |
| 116 | field OmegaGpuSession last_open_ns 184 8 u64 1 |
| 117 | struct OmegaGpuScratch 64 8 # STABLE |
| 118 | field OmegaGpuScratch mem 0 40 struct:OmegaGpuMem 1 |
| 119 | field OmegaGpuScratch cap 40 8 u64 1 |
| 120 | field OmegaGpuScratch high_water 48 8 u64 1 |
| 121 | field OmegaGpuScratch reserved 56 1 bool 1 |
| 122 | struct OmegaGpuLaunch 72 8 # STABLE |
| 123 | field OmegaGpuLaunch code_va 0 8 u64 1 |
| 124 | field OmegaGpuLaunch gpr_count 8 4 u32 1 |
| 125 | field OmegaGpuLaunch threads_x 12 4 u32 1 |
| 126 | field OmegaGpuLaunch threads_y 16 4 u32 1 |
| 127 | field OmegaGpuLaunch grid_x 20 4 u32 1 |
| 128 | field OmegaGpuLaunch grid_y 24 4 u32 1 |
| 129 | field OmegaGpuLaunch num_elements 32 8 u64 1 |
| 130 | field OmegaGpuLaunch args 40 8 ptr 1 |
| 131 | field OmegaGpuLaunch n_args 48 4 u32 1 |
| 132 | field OmegaGpuLaunch timeout_ms 56 8 u64 1 |
| 133 | field OmegaGpuLaunch shared_bytes 64 4 u32 1 |
| 134 | field OmegaGpuLaunch spin_us 68 4 u32 1 |
| 135 | struct OmegaGpuParkStats 16 8 # STABLE |
| 136 | field OmegaGpuParkStats buffers 0 4 u32 1 |
| 137 | field OmegaGpuParkStats untracked 4 4 u32 1 |
| 138 | field OmegaGpuParkStats bytes 8 8 u64 1 |
| 139 | fn omega_gpu_session_lock fn() -> () # STABLE |
| 140 | fn omega_gpu_session_unlock fn() -> () # STABLE |
| 141 | fn omega_gpu_session_open fn() -> *mut OmegaGpuSession # STABLE |
| 142 | fn omega_gpu_session_is_open fn() -> bool # STABLE |
| 143 | fn omega_gpu_session_is_blocked fn() -> i32 # STABLE |
| 144 | fn omega_gpu_session_close fn() -> () # STABLE |
| 145 | fn omega_gpu_session_open_count fn() -> u32 # STABLE |
| 146 | fn omega_gpu_session_alloc fn(usize, *mut OmegaGpuMem) -> i32 # STABLE |
| 147 | fn omega_gpu_session_alloc_code fn(usize, *mut OmegaGpuMem) -> i32 # STABLE |
| 148 | fn omega_gpu_session_free fn(*mut OmegaGpuMem) -> () # STABLE |
| 149 | fn omega_gpu_session_sync_to_gpu fn(*const OmegaGpuMem) -> i32 # STABLE |
| 150 | fn omega_gpu_session_sync_to_cpu fn(*const OmegaGpuMem) -> i32 # STABLE |
| 151 | fn omega_gpu_session_scratch fn(*mut OmegaGpuScratch, usize) -> i32 # STABLE |
| 152 | fn omega_gpu_session_scratch_free fn(*mut OmegaGpuScratch) -> () # STABLE |
| 153 | fn omega_gpu_session_launch fn(*const OmegaGpuLaunch, *mut u64, *mut u32) -> i32 # STABLE |
| 154 | fn omega_gpu_session_last_error fn() -> *const c_char # STABLE |
| 155 | fn omega_gpu_session_parked fn(*mut OmegaGpuParkStats) -> () # STABLE |
| 156 | fn omega_gpu_session_is_parked fn(OmegaGpuBufferHandle) -> i32 # STABLE |
| 157 | fn omega_gpu_session_alloc_cached fn(usize, *mut OmegaGpuMem) -> i32 # EXPERIMENTAL |
| 158 | fn omega_gpu_session_scratch_reserve fn(*mut OmegaGpuScratch, usize) -> i32 # EXPERIMENTAL |
| 159 | fn omega_gpu_session_scratch_unreserve fn(*mut OmegaGpuScratch) -> () # EXPERIMENTAL |
| 160 | fn omega_gpu_session_cancel fn() -> () # EXPERIMENTAL |
| 161 | fn omega_gpu_session_recover fn() -> i32 # EXPERIMENTAL |
| 162 | fn omega_gpu_session_recoveries fn() -> u32 # EXPERIMENTAL |
| 163 | fn omega_gpu_session_extra_queue fn(u32, *mut OmegaGpuQueueHandle) -> i32 # EXPERIMENTAL |
| 164 | fn omega_gpu_session_set_platform fn(*const OmegaGpuPlatform, *const OmegaGpuPlatformCaps) -> i32 # EXPERIMENTAL |
| 165 | fn omega_gpu_session_platform fn() -> *const OmegaGpuPlatform # EXPERIMENTAL |
| 166 | fn omega_gpu_session_submit_prefix_words fn() -> u32 # EXPERIMENTAL |
| 167 | fn omega_gpu_session_completion_mode fn() -> OmegaGpuCompletionMode # EXPERIMENTAL |
| 168 | fn omega_gpu_session_now_ns fn() -> u64 # EXPERIMENTAL |
| 169 | fn omega_gpu_host_alloc fn(usize) -> *mut c_void # EXPERIMENTAL |
| 170 | fn omega_gpu_host_calloc fn(usize, usize) -> *mut c_void # EXPERIMENTAL |
| 171 | fn omega_gpu_host_free fn(*mut c_void) -> () # EXPERIMENTAL |
| 172 | # ---- command lists (src/omega_gpu_cmdlist.h) ---- |
| 173 | struct OmegaGpuCmdListOpts 32 8 # EXPERIMENTAL |
| 174 | field OmegaGpuCmdListOpts mode 0 4 enum 1 |
| 175 | field OmegaGpuCmdListOpts barrier 4 4 enum 1 |
| 176 | field OmegaGpuCmdListOpts timeout_ms 8 8 u64 1 |
| 177 | field OmegaGpuCmdListOpts spin_us 16 4 u32 1 |
| 178 | field OmegaGpuCmdListOpts stamps 20 4 i32 1 |
| 179 | field OmegaGpuCmdListOpts skip_launch 24 4 i32 1 |
| 180 | field OmegaGpuCmdListOpts first_barrier_none 28 4 i32 1 |
| 181 | struct OmegaGpuCmdListStats 40 8 # EXPERIMENTAL |
| 182 | field OmegaGpuCmdListStats launches 0 4 u32 1 |
| 183 | field OmegaGpuCmdListStats submits 4 4 u32 1 |
| 184 | field OmegaGpuCmdListStats words 8 4 u32 1 |
| 185 | field OmegaGpuCmdListStats elapsed_ns 16 8 u64 1 |
| 186 | field OmegaGpuCmdListStats host_ns 24 8 u64 1 |
| 187 | field OmegaGpuCmdListStats sems_done 32 4 u32 1 |
| 188 | field OmegaGpuCmdListStats first_missing 36 4 i32 1 |
| 189 | fn omega_gpu_cmdlist_barrier_name fn(OmegaGpuCmdListBarrier) -> *const c_char # EXPERIMENTAL |
| 190 | fn omega_gpu_cmdlist_create fn(u32, *mut *mut OmegaGpuCmdList) -> i32 # EXPERIMENTAL |
| 191 | fn omega_gpu_cmdlist_free fn(*mut OmegaGpuCmdList) -> () # EXPERIMENTAL |
| 192 | fn omega_gpu_cmdlist_reset fn(*mut OmegaGpuCmdList) -> () # EXPERIMENTAL |
| 193 | fn omega_gpu_cmdlist_count fn(*const OmegaGpuCmdList) -> u32 # EXPERIMENTAL |
| 194 | fn omega_gpu_cmdlist_mark_independent fn(*mut OmegaGpuCmdList) -> i32 # EXPERIMENTAL |
| 195 | fn omega_gpu_cmdlist_add fn(*mut OmegaGpuCmdList, *const OmegaGpuLaunch) -> i32 # EXPERIMENTAL |
| 196 | fn omega_gpu_cmdlist_submit fn(*mut OmegaGpuCmdList, *const OmegaGpuCmdListOpts, *mut OmegaGpuCmdListStats) -> i32 # EXPERIMENTAL |
| 197 | fn omega_gpu_cmdlist_is_latched fn() -> i32 # EXPERIMENTAL |
| 198 | fn omega_gpu_cmdlist_stamps fn(*const OmegaGpuCmdList, *mut u64, u32) -> i32 # EXPERIMENTAL |
| 199 | fn omega_gpu_cmdlist_submit_pair fn(*mut OmegaGpuCmdList, *mut OmegaGpuCmdList, *const OmegaGpuCmdListOpts, *mut OmegaGpuCmdListStats, *mut OmegaGpuCmdListStats) -> i32 # EXPERIMENTAL |
| 200 | fn omega_gpu_cmdlist_wait_for fn(*mut OmegaGpuCmdList, *const OmegaGpuCmdList, u32) -> i32 # EXPERIMENTAL |
| 201 | # ---- job engine (src/omega_gpu_engine.h) ---- |
| 202 | struct OmegaGpuTimeouts 32 8 # EXPERIMENTAL |
| 203 | field OmegaGpuTimeouts marker_ms 0 8 u64 1 |
| 204 | field OmegaGpuTimeouts release_semaphore_ms 8 8 u64 1 |
| 205 | field OmegaGpuTimeouts marker2_ms 16 8 u64 1 |
| 206 | field OmegaGpuTimeouts visibility_ms 24 8 u64 1 |
| 207 | struct OmegaGpuJob 128 8 # EXPERIMENTAL |
| 208 | field OmegaGpuJob program 0 8 ptr 1 |
| 209 | field OmegaGpuJob program_len 8 8 u64 1 |
| 210 | field OmegaGpuJob layout 16 4 i32 1 |
| 211 | field OmegaGpuJob element_count 20 4 u32 1 |
| 212 | field OmegaGpuJob input_a 24 8 ptr 1 |
| 213 | field OmegaGpuJob input_a_len 32 8 u64 1 |
| 214 | field OmegaGpuJob input_b 40 8 ptr 1 |
| 215 | field OmegaGpuJob input_b_len 48 8 u64 1 |
| 216 | field OmegaGpuJob output 56 8 ptr 1 |
| 217 | field OmegaGpuJob output_len 64 8 u64 1 |
| 218 | field OmegaGpuJob poison 72 8 ptr 1 |
| 219 | field OmegaGpuJob poison_count 80 8 u64 1 |
| 220 | field OmegaGpuJob timeouts 88 32 struct:OmegaGpuTimeouts 1 |
| 221 | field OmegaGpuJob flags 120 4 u32 1 |
| 222 | struct OmegaGpuResult 208 8 # EXPERIMENTAL |
| 223 | field OmegaGpuResult failure 0 4 i32 1 |
| 224 | field OmegaGpuResult last_state 4 4 i32 1 |
| 225 | field OmegaGpuResult failed_step 8 4 i32 1 |
| 226 | field OmegaGpuResult wait 12 4 i32 1 |
| 227 | field OmegaGpuResult wait_timeout_ms 16 8 u64 1 |
| 228 | field OmegaGpuResult waited_ms 24 8 u64 1 |
| 229 | field OmegaGpuResult drv_rc 32 4 i32 1 |
| 230 | field OmegaGpuResult err_no 36 4 i32 1 |
| 231 | field OmegaGpuResult drv_text 40 128 c_char 128 |
| 232 | field OmegaGpuResult sync_valid 168 4 u32 1 |
| 233 | field OmegaGpuResult marker 172 4 u32 1 |
| 234 | field OmegaGpuResult marker2 176 4 u32 1 |
| 235 | field OmegaGpuResult semaphore 180 4 u32 1 |
| 236 | field OmegaGpuResult retained 184 4 i32 1 |
| 237 | field OmegaGpuResult cleanup_failed 188 4 i32 1 |
| 238 | field OmegaGpuResult n_outputs 192 8 u64 1 |
| 239 | field OmegaGpuResult output_unchanged_words 200 8 u64 1 |
| 240 | struct OmegaGpuBackendDiag 148 4 # EXPERIMENTAL |
| 241 | field OmegaGpuBackendDiag drv_rc 0 4 i32 1 |
| 242 | field OmegaGpuBackendDiag drv_text 4 128 c_char 128 |
| 243 | field OmegaGpuBackendDiag sync_valid 132 4 u32 1 |
| 244 | field OmegaGpuBackendDiag marker 136 4 u32 1 |
| 245 | field OmegaGpuBackendDiag marker2 140 4 u32 1 |
| 246 | field OmegaGpuBackendDiag semaphore 144 4 u32 1 |
| 247 | struct OmegaGpuBackend 128 8 # EXPERIMENTAL |
| 248 | field OmegaGpuBackend ctx 0 8 ptr 1 |
| 249 | field OmegaGpuBackend open_device 8 8 ptr 1 |
| 250 | field OmegaGpuBackend create_channel 16 8 ptr 1 |
| 251 | field OmegaGpuBackend alloc 24 8 ptr 1 |
| 252 | field OmegaGpuBackend copy_in 32 8 ptr 1 |
| 253 | field OmegaGpuBackend fill_poison 40 8 ptr 1 |
| 254 | field OmegaGpuBackend build 48 8 ptr 1 |
| 255 | field OmegaGpuBackend submit 56 8 ptr 1 |
| 256 | field OmegaGpuBackend wait_marker 64 8 ptr 1 |
| 257 | field OmegaGpuBackend wait_marker2 72 8 ptr 1 |
| 258 | field OmegaGpuBackend wait_release_semaphore 80 8 ptr 1 |
| 259 | field OmegaGpuBackend barrier 88 8 ptr 1 |
| 260 | field OmegaGpuBackend copy_out 96 8 ptr 1 |
| 261 | field OmegaGpuBackend diagnostics 104 8 ptr 1 |
| 262 | field OmegaGpuBackend free_buf 112 8 ptr 1 |
| 263 | field OmegaGpuBackend close 120 8 ptr 1 |
| 264 | fn omega_gpu_execute fn(*const OmegaGpuJob, *mut OmegaGpuResult) -> i32 # EXPERIMENTAL |
| 265 | fn omega_gpu_engine_set_backend fn(*const OmegaGpuBackend) -> () # EXPERIMENTAL |
| 266 | fn omega_gpu_engine_is_blocked fn() -> i32 # EXPERIMENTAL |
| 267 | fn omega_gpu_engine_set_clock fn(fn() -> u64) -> () # EXPERIMENTAL |
| 268 | fn omega_gpu_engine_failure_name fn(i32) -> *const c_char # EXPERIMENTAL |
| 269 | fn omega_gpu_engine_state_name fn(i32) -> *const c_char # EXPERIMENTAL |
| 270 | fn omega_gpu_engine_wait_name fn(i32) -> *const c_char # EXPERIMENTAL |
| 271 | fn omega_gpu_engine_step_name fn(i32) -> *const c_char # EXPERIMENTAL |
| 272 | # ---- libraries: carried over unchanged from aien-sovereign-core origin/main 10b4f851d6b082df6c2c477fbab700b551b854be crates/aien-omega-gpu/abi/omega_gpu.manifest ---- |
| 273 | # (matmul, elementwise, attention, serving; all EXPERIMENTAL: shapes follow one model, see docs/runtime/ROADMAP.md 1.3). |
| 274 | # ONE DIFFERENCE from that file: OMEGA_GPU_MATMUL_MAX_CTAS is 1024 here, 64 there (omega 98cecadc, #473, changed the header; sovereign-core pin is older). R12 must bring theirs to match. |
| 275 | # (omega_gpu_session_set_spin_us / _spin_us / _alloc_stats are STABLE session entries; they live in the session section of API.md) |
| 276 | struct OmegaGpuMatmulInfo 160 8 # EXPERIMENTAL |
| 277 | field OmegaGpuMatmulInfo m 0 4 u32 1 |
| 278 | field OmegaGpuMatmulInfo k 4 4 u32 1 |
| 279 | field OmegaGpuMatmulInfo n 8 4 u32 1 |
| 280 | field OmegaGpuMatmulInfo padded_m 12 4 u32 1 |
| 281 | field OmegaGpuMatmulInfo padded_n 16 4 u32 1 |
| 282 | field OmegaGpuMatmulInfo k_slices 20 4 u32 1 |
| 283 | field OmegaGpuMatmulInfo chip_calls 24 4 u32 1 |
| 284 | field OmegaGpuMatmulInfo rows_per_call 28 4 u32 1 |
| 285 | field OmegaGpuMatmulInfo elapsed_ns 32 8 u64 1 |
| 286 | field OmegaGpuMatmulInfo max_abs_err 40 4 f32 1 |
| 287 | field OmegaGpuMatmulInfo max_rel_err 44 4 f32 1 |
| 288 | field OmegaGpuMatmulInfo mismatch_count 48 8 u64 1 |
| 289 | field OmegaGpuMatmulInfo parity_verified 56 1 bool 1 |
| 290 | field OmegaGpuMatmulInfo completion_marker 60 4 u32 1 |
| 291 | field OmegaGpuMatmulInfo kernel_cache_hit 64 1 bool 1 |
| 292 | field OmegaGpuMatmulInfo target_chip 65 64 c_char 64 |
| 293 | field OmegaGpuMatmulInfo sm_architecture 132 4 u32 1 |
| 294 | field OmegaGpuMatmulInfo grid_x 136 4 u32 1 |
| 295 | field OmegaGpuMatmulInfo grid_y 140 4 u32 1 |
| 296 | field OmegaGpuMatmulInfo padded_k 144 4 u32 1 |
| 297 | field OmegaGpuMatmulInfo resident 148 1 bool 1 |
| 298 | field OmegaGpuMatmulInfo oracle_ran 149 1 bool 1 |
| 299 | field OmegaGpuMatmulInfo call_ns 152 8 u64 1 |
| 300 | struct OmegaGpuAllocStats 40 8 # STABLE |
| 301 | field OmegaGpuAllocStats allocs 0 8 u64 1 |
| 302 | field OmegaGpuAllocStats alloc_bytes 8 8 u64 1 |
| 303 | field OmegaGpuAllocStats alloc_failures 16 8 u64 1 |
| 304 | field OmegaGpuAllocStats frees 24 8 u64 1 |
| 305 | field OmegaGpuAllocStats stale_refusals 32 8 u64 1 |
| 306 | struct OmegaGpuServingBounds 44 4 # EXPERIMENTAL |
| 307 | field OmegaGpuServingBounds max_context 0 4 u32 1 |
| 308 | field OmegaGpuServingBounds max_seqs 4 4 u32 1 |
| 309 | field OmegaGpuServingBounds num_q_heads 8 4 u32 1 |
| 310 | field OmegaGpuServingBounds num_kv_heads 12 4 u32 1 |
| 311 | field OmegaGpuServingBounds head_dim 16 4 u32 1 |
| 312 | field OmegaGpuServingBounds kv_block_size 20 4 u32 1 |
| 313 | field OmegaGpuServingBounds max_rows 24 4 u32 1 |
| 314 | field OmegaGpuServingBounds max_k 28 4 u32 1 |
| 315 | field OmegaGpuServingBounds max_n 32 4 u32 1 |
| 316 | field OmegaGpuServingBounds max_n_one_row 36 4 u32 1 |
| 317 | field OmegaGpuServingBounds kernel_slots 40 4 u32 1 |
| 318 | struct OmegaGpuEwInfo 120 8 # EXPERIMENTAL |
| 319 | field OmegaGpuEwInfo chip_calls 0 4 u32 1 |
| 320 | field OmegaGpuEwInfo elapsed_ns 8 8 u64 1 |
| 321 | field OmegaGpuEwInfo completion_marker 16 4 u32 1 |
| 322 | field OmegaGpuEwInfo unwritten_words 20 4 u32 1 |
| 323 | field OmegaGpuEwInfo kernel_cache_hit 24 1 bool 1 |
| 324 | field OmegaGpuEwInfo gpr_count 28 4 u32 1 |
| 325 | field OmegaGpuEwInfo insn_count 32 4 u32 1 |
| 326 | field OmegaGpuEwInfo threads_per_cta 36 4 u32 1 |
| 327 | field OmegaGpuEwInfo ctas_last_launch 40 4 u32 1 |
| 328 | field OmegaGpuEwInfo target_chip 44 64 c_char 64 |
| 329 | field OmegaGpuEwInfo sm_architecture 108 4 u32 1 |
| 330 | field OmegaGpuEwInfo call_ns 112 8 u64 1 |
| 331 | struct OmegaGpuAttnInfo 176 8 # EXPERIMENTAL |
| 332 | field OmegaGpuAttnInfo chip_calls 0 4 u32 1 |
| 333 | field OmegaGpuAttnInfo elapsed_ns 8 8 u64 1 |
| 334 | field OmegaGpuAttnInfo call_ns 16 8 u64 1 |
| 335 | field OmegaGpuAttnInfo completion_marker 24 4 u32 1 |
| 336 | field OmegaGpuAttnInfo unwritten_words 28 4 u32 1 |
| 337 | field OmegaGpuAttnInfo gpr_count 32 4 u32 1 |
| 338 | field OmegaGpuAttnInfo insn_count 36 4 u32 1 |
| 339 | field OmegaGpuAttnInfo kernel_cache_hit 40 1 bool 1 |
| 340 | field OmegaGpuAttnInfo ctas_last_launch 44 4 u32 1 |
| 341 | field OmegaGpuAttnInfo threads_per_cta 48 4 u32 1 |
| 342 | field OmegaGpuAttnInfo target_chip 52 64 c_char 64 |
| 343 | field OmegaGpuAttnInfo sm_architecture 116 4 u32 1 |
| 344 | field OmegaGpuAttnInfo kv_bytes_staged 120 8 u64 1 |
| 345 | field OmegaGpuAttnInfo kv_bytes_naive 128 8 u64 1 |
| 346 | field OmegaGpuAttnInfo kv_blocks_logical 136 4 u32 1 |
| 347 | field OmegaGpuAttnInfo kv_blocks_unique 140 4 u32 1 |
| 348 | field OmegaGpuAttnInfo q_bytes 144 8 u64 1 |
| 349 | field OmegaGpuAttnInfo tab_bytes 152 8 u64 1 |
| 350 | field OmegaGpuAttnInfo out_bytes 160 8 u64 1 |
| 351 | field OmegaGpuAttnInfo kv_source 168 4 u32 1 |
| 352 | struct OmegaGpuKvLayout 64 8 # EXPERIMENTAL |
| 353 | field OmegaGpuKvLayout block_stride_bytes 0 8 u64 1 |
| 354 | field OmegaGpuKvLayout layer_stride_bytes 8 8 u64 1 |
| 355 | field OmegaGpuKvLayout kv_plane_stride_bytes 16 8 u64 1 |
| 356 | field OmegaGpuKvLayout token_stride_bytes 24 8 u64 1 |
| 357 | field OmegaGpuKvLayout head_stride_bytes 32 8 u64 1 |
| 358 | field OmegaGpuKvLayout pool_bytes 40 8 u64 1 |
| 359 | field OmegaGpuKvLayout num_blocks 48 4 u32 1 |
| 360 | field OmegaGpuKvLayout num_layers 52 4 u32 1 |
| 361 | field OmegaGpuKvLayout block_size 56 4 u32 1 |
| 362 | const OMEGA_GPU_MATMUL_OK 0 |
| 363 | const OMEGA_GPU_MATMUL_BAD_ARGS -1 |
| 364 | const OMEGA_GPU_MATMUL_TOO_LARGE -2 |
| 365 | const OMEGA_GPU_MATMUL_CODEGEN_FAIL -3 |
| 366 | const OMEGA_GPU_MATMUL_CHIP_FAIL -4 |
| 367 | const OMEGA_GPU_MATMUL_PARITY_FAIL -5 |
| 368 | const OMEGA_GPU_MATMUL_TILE_M 16 |
| 369 | const OMEGA_GPU_MATMUL_TILE_N 8 |
| 370 | const OMEGA_GPU_MATMUL_TILE_K 16 |
| 371 | const OMEGA_GPU_MATMUL_MAX_CTAS 1024 |
| 372 | const OMEGA_GPU_EW_OK 0 |
| 373 | const OMEGA_GPU_EW_BAD_ARGS -1 |
| 374 | const OMEGA_GPU_EW_TOO_LARGE -2 |
| 375 | const OMEGA_GPU_EW_CODEGEN_FAIL -3 |
| 376 | const OMEGA_GPU_EW_CHIP_FAIL -4 |
| 377 | const OMEGA_GPU_EW_UNWRITTEN -5 |
| 378 | const OMEGA_GPU_ATTN_OK 0 |
| 379 | const OMEGA_GPU_ATTN_BAD_ARGS -1 |
| 380 | const OMEGA_GPU_ATTN_TOO_LARGE -2 |
| 381 | const OMEGA_GPU_ATTN_CODEGEN_FAIL -3 |
| 382 | const OMEGA_GPU_ATTN_CHIP_FAIL -4 |
| 383 | const OMEGA_GPU_ATTN_UNWRITTEN -5 |
| 384 | const OMEGA_GPU_ATTN_KV_STAGED 0 |
| 385 | fn omega_gpu_matmul_bf16 fn(u32, u32, u32, *const u16, *const u16, *mut f32, *mut OmegaGpuMatmulInfo) -> i32 # EXPERIMENTAL |
| 386 | fn omega_gpu_matmul_f32 fn(u32, u32, u32, *const f32, *const f32, *mut f32, *mut OmegaGpuMatmulInfo) -> i32 # EXPERIMENTAL |
| 387 | fn omega_gpu_matmul_rc_name fn(i32) -> *const c_char # EXPERIMENTAL |
| 388 | fn omega_gpu_matmul_cache_clear fn() -> () # EXPERIMENTAL |
| 389 | fn omega_gpu_tensor_upload_bf16 fn(u32, u32, *const u16, *mut *mut OmegaGpuTensor) -> i32 # EXPERIMENTAL |
| 390 | fn omega_gpu_tensor_upload_f32 fn(u32, u32, *const f32, *mut *mut OmegaGpuTensor) -> i32 # EXPERIMENTAL |
| 391 | fn omega_gpu_tensor_free fn(*mut OmegaGpuTensor) -> () # EXPERIMENTAL |
| 392 | fn omega_gpu_tensor_shape fn(*const OmegaGpuTensor, *mut u32, *mut u32) -> () # EXPERIMENTAL |
| 393 | fn omega_gpu_matmul_resident_bf16 fn(u32, *const u16, *const OmegaGpuTensor, *mut f32, *mut OmegaGpuMatmulInfo) -> i32 # EXPERIMENTAL |
| 394 | fn omega_gpu_matmul_resident_f32 fn(u32, *const f32, *const OmegaGpuTensor, *mut f32, *mut OmegaGpuMatmulInfo) -> i32 # EXPERIMENTAL |
| 395 | fn omega_gpu_matmul_last_error fn() -> *const c_char # EXPERIMENTAL |
| 396 | fn omega_gpu_matmul_is_blocked fn() -> i32 # EXPERIMENTAL |
| 397 | fn omega_gpu_device_close fn() -> () # EXPERIMENTAL |
| 398 | fn omega_gpu_matmul_set_cta_budget fn(u32) -> () # EXPERIMENTAL |
| 399 | fn omega_gpu_matmul_cta_budget fn() -> u32 # EXPERIMENTAL |
| 400 | fn omega_gpu_session_set_spin_us fn(u32) -> i32 # STABLE |
| 401 | fn omega_gpu_session_spin_us fn() -> u32 # STABLE |
| 402 | fn omega_gpu_reserve_serving fn(*const OmegaGpuServingBounds) -> i32 # EXPERIMENTAL |
| 403 | fn omega_gpu_serving_release fn() -> () # EXPERIMENTAL |
| 404 | fn omega_gpu_matmul_prepare fn(u32, u32, u32) -> i32 # EXPERIMENTAL |
| 405 | fn omega_gpu_serving_seal fn() -> () # EXPERIMENTAL |
| 406 | fn omega_gpu_session_alloc_stats fn(*mut OmegaGpuAllocStats) -> () # STABLE |
| 407 | fn omega_gpu_rmsnorm_f32 fn(u32, u32, *const f32, *const f32, f32, *mut f32, *mut OmegaGpuEwInfo) -> i32 # EXPERIMENTAL |
| 408 | fn omega_gpu_rope_f32 fn(u32, u32, *const f32, *const f32, *const f32, *mut f32, *mut OmegaGpuEwInfo) -> i32 # EXPERIMENTAL |
| 409 | fn omega_gpu_swiglu_f32 fn(u32, *const f32, *const f32, *mut f32, *mut OmegaGpuEwInfo) -> i32 # EXPERIMENTAL |
| 410 | fn omega_gpu_elementwise_rc_name fn(i32) -> *const c_char # EXPERIMENTAL |
| 411 | fn omega_gpu_gqa_attention_f32 fn(*const f32, *const f32, *const f32, u32, u32, u32, u32, *mut f32, *mut OmegaGpuAttnInfo) -> i32 # EXPERIMENTAL |
| 412 | fn omega_gpu_gqa_attention_rows_f32 fn(*const f32, *const f32, *const f32, u32, u32, u32, u32, u32, *mut f32, *mut OmegaGpuAttnInfo) -> i32 # EXPERIMENTAL |
| 413 | fn omega_gpu_attention_pool_alloc fn(usize, *mut *mut c_void) -> i32 # EXPERIMENTAL |
| 414 | fn omega_gpu_attention_pool_free fn() -> () # EXPERIMENTAL |
| 415 | 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 # EXPERIMENTAL |
| 416 | 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 # EXPERIMENTAL |
| 417 | fn omega_gpu_attention_rc_name fn(i32) -> *const c_char # EXPERIMENTAL |
| 418 | fn omega_gpu_attention_last_error fn() -> *const c_char # EXPERIMENTAL |
| 419 | # ---- constants of the runtime headers (values blessed from the headers) ---- |
| 420 | const OMEGA_GPU_PLATFORM_ABI_MAJOR 1 |
| 421 | const OMEGA_GPU_PLATFORM_ABI_MINOR 2 |
| 422 | const OMEGA_GPU_POLL_TIMED_OUT 100 |
| 423 | const OMEGA_GPU_HANDLE_SLOTS 4096 |
| 424 | const OMEGA_GPU_HANDLE_DEVICE 1 |
| 425 | const OMEGA_GPU_HANDLE_BUF_DATA 2 |
| 426 | const OMEGA_GPU_HANDLE_BUF_CODE 3 |
| 427 | const OMEGA_GPU_HANDLE_BUF_QUEUE 4 |
| 428 | const OMEGA_GPU_HANDLE_QUEUE 5 |
| 429 | const OMEGA_GPU_HANDLE_KIND_COUNT 6 |
| 430 | const OMEGA_GPU_RIGHT_CPU_READ 1 |
| 431 | const OMEGA_GPU_RIGHT_CPU_WRITE 2 |
| 432 | const OMEGA_GPU_RIGHT_GPU_READ 4 |
| 433 | const OMEGA_GPU_RIGHT_GPU_WRITE 8 |
| 434 | const OMEGA_GPU_RIGHT_GPU_EXEC 16 |
| 435 | const OMEGA_GPU_RIGHT_HOST_POLLED 32 |
| 436 | const OMEGA_GPU_RIGHT_ALL 63 |
| 437 | const OMEGA_GPU_CACHE_GPU_UNCACHED 0 |
| 438 | const OMEGA_GPU_CACHE_GPU_CACHED 1 |
| 439 | const OMEGA_GPU_SVC_TIME 1 |
| 440 | const OMEGA_GPU_SVC_WAIT 2 |
| 441 | const OMEGA_GPU_SVC_LOCK 4 |
| 442 | const OMEGA_GPU_SVC_MMIO 8 |
| 443 | const OMEGA_GPU_SVC_DMA 16 |
| 444 | const OMEGA_GPU_SVC_SYNC 32 |
| 445 | const OMEGA_GPU_SVC_COMPLETION 64 |
| 446 | const OMEGA_GPU_SVC_IRQ 128 |
| 447 | const OMEGA_GPU_SVC_REQUIRED_V1 127 |
| 448 | const OMEGA_GPU_SVC_DEVICE 256 |
| 449 | const OMEGA_GPU_SVC_QUEUE 512 |
| 450 | const OMEGA_GPU_SVC_CLOCK_NS 1024 |
| 451 | const OMEGA_GPU_SVC_HOST_MEM 2048 |
| 452 | const OMEGA_GPU_SVC_REQUIRED_SESSION 3959 |
| 453 | const OMEGA_GPU_SVC_ALL 4095 |
| 454 | const OMEGA_GPU_PLAT_OK 0 |
| 455 | const OMEGA_GPU_PLAT_REFUSED_ARGS 1 |
| 456 | const OMEGA_GPU_PLAT_REFUSED_ABI 2 |
| 457 | const OMEGA_GPU_PLAT_REFUSED_MISSING_SERVICE 3 |
| 458 | const OMEGA_GPU_PLAT_REFUSED_NULL_SERVICE 4 |
| 459 | const OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE 5 |
| 460 | const OMEGA_GPU_PLAT_REFUSED_STALE_HANDLE 6 |
| 461 | const OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH 7 |
| 462 | const OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS 8 |
| 463 | const OMEGA_GPU_PLAT_REFUSED_BAD_KIND 9 |
| 464 | const OMEGA_GPU_PLAT_REFUSED_CACHE_POLICY 10 |
| 465 | const OMEGA_GPU_PLAT_REFUSED_LIMIT 11 |
| 466 | const OMEGA_GPU_PLAT_REFUSED_BUSY 12 |
| 467 | const OMEGA_GPU_PLAT_REFUSED_DEVICE 13 |
| 468 | const OMEGA_GPU_PLAT_REFUSAL_COUNT 14 |
| 469 | const OMEGA_GPU_SESSION_MAX_SPIN_US 1000000 |
| 470 | const OMEGA_GPU_SESSION_MAX_ARGS 32 |
| 471 | const OMEGA_GPU_SESSION_POLL_SLICE_MS 1 |
| 472 | const OMEGA_GPU_SESSION_LOCK_ID 0 |
| 473 | const OMEGA_GPU_SESSION_SCRATCH_RESERVED -2 |
| 474 | const OMEGA_GPU_SESSION_CANCELLED -3 |
| 475 | const OMEGA_GPU_SESSION_PARK_MAX 512 |
| 476 | const OMEGA_GPU_COMPLETION_POLLING 1 |
| 477 | const OMEGA_GPU_CMDLIST_MAX_LAUNCHES 4096 |
| 478 | const OMEGA_GPU_CMDLIST_BANK_BYTES 1024 |
| 479 | const OMEGA_GPU_CMDLIST_QMD_BYTES 1024 |
| 480 | const OMEGA_GPU_CMDLIST_PCAS 0 |
| 481 | const OMEGA_GPU_CMDLIST_INLINE 1 |
| 482 | const OMEGA_GPU_CMDLIST_BARRIER_WFI 0 |
| 483 | const OMEGA_GPU_CMDLIST_BARRIER_NONE 1 |
| 484 | const OMEGA_GPU_CMDLIST_BARRIER_WFI_ONLY 2 |
| 485 | const OMEGA_GPU_CMDLIST_BARRIER_WFI_DATA 3 |
| 486 | const OMEGA_GPU_CMDLIST_BARRIER_FLUSH_DATA 4 |
| 487 | const OMEGA_GPU_ENGINE_FLAG_NO_C3 1 |
| 488 | const OMEGA_GPU_ENGINE_JOB_OUTPUTS 1 |
| 489 | const OMEGA_GPU_ENGINE_SEMAPHORE_WORDS 1 |
| 490 | const OMEGA_GPU_ENGINE_DRV_TEXT_BYTES 128 |
| 491 | const OMEGA_GPU_SYNC_MARKER 1 |
| 492 | const OMEGA_GPU_SYNC_MARKER2 2 |
| 493 | const OMEGA_GPU_SYNC_SEMAPHORE 4 |
| 494 | const OMEGA_GPU_BACKEND_TIMEOUT 1 |
| 495 | const OMEGA_GPU_BACKEND_UNKNOWN_STATE 2 |
| 496 | const OMEGA_GPU_ENGINE_OK 0 |
| 497 | const OMEGA_GPU_ENGINE_DEVICE_OPEN 1 |
| 498 | const OMEGA_GPU_ENGINE_CHANNEL_CREATE 2 |
| 499 | const OMEGA_GPU_ENGINE_ALLOC 3 |
| 500 | const OMEGA_GPU_ENGINE_PREPARE 4 |
| 501 | const OMEGA_GPU_ENGINE_SUBMIT 5 |
| 502 | const OMEGA_GPU_ENGINE_COMPLETION_WAIT 6 |
| 503 | const OMEGA_GPU_ENGINE_RELEASE_WAIT 7 |
| 504 | const OMEGA_GPU_ENGINE_VISIBILITY_WAIT 8 |
| 505 | const OMEGA_GPU_ENGINE_OUTPUT_UNCHANGED 9 |
| 506 | const OMEGA_GPU_ENGINE_INVALID_ARGS 10 |
| 507 | const OMEGA_GPU_ENGINE_INTERNAL_INVARIANT 11 |
| 508 | const OMEGA_GPU_ENGINE_CLEANUP 12 |
| 509 | const OMEGA_GPU_ENGINE_UNCERTAIN_COMPLETION_BLOCKED 13 |
| 510 | const OMEGA_GPU_ENGINE_FAILURE_COUNT 14 |
| 511 | const OMEGA_GPU_ENGINE_STATE_INITIAL 0 |
| 512 | const OMEGA_GPU_ENGINE_STATE_PREPARED 1 |
| 513 | const OMEGA_GPU_ENGINE_STATE_SUBMITTED 2 |
| 514 | const OMEGA_GPU_ENGINE_STATE_GPU_COMPLETE 3 |
| 515 | const OMEGA_GPU_ENGINE_STATE_OUTPUT_VISIBLE 4 |
| 516 | const OMEGA_GPU_ENGINE_STATE_OUTPUT_PRODUCED 5 |
| 517 | const OMEGA_GPU_ENGINE_STATE_SUCCESS 6 |
| 518 | const OMEGA_GPU_ENGINE_STATE_COUNT 7 |
| 519 | const OMEGA_GPU_ENGINE_WAIT_NONE 0 |
| 520 | const OMEGA_GPU_ENGINE_WAIT_MARKER 1 |
| 521 | const OMEGA_GPU_ENGINE_WAIT_RELEASE_SEMAPHORE 2 |
| 522 | const OMEGA_GPU_ENGINE_WAIT_MARKER2 3 |
| 523 | const OMEGA_GPU_ENGINE_WAIT_COUNT 4 |
| 524 | const OMEGA_GPU_ENGINE_STEP_NONE 0 |
| 525 | const OMEGA_GPU_ENGINE_STEP_VALIDATE 1 |
| 526 | const OMEGA_GPU_ENGINE_STEP_BACKEND_CHECK 2 |
| 527 | const OMEGA_GPU_ENGINE_STEP_BLOCKED 3 |
| 528 | const OMEGA_GPU_ENGINE_STEP_NOT_IMPLEMENTED 4 |
| 529 | const OMEGA_GPU_ENGINE_STEP_OPEN_DEVICE 5 |
| 530 | const OMEGA_GPU_ENGINE_STEP_CREATE_CHANNEL 6 |
| 531 | const OMEGA_GPU_ENGINE_STEP_ALLOC 7 |
| 532 | const OMEGA_GPU_ENGINE_STEP_COPY_IN 8 |
| 533 | const OMEGA_GPU_ENGINE_STEP_FILL_POISON 9 |
| 534 | const OMEGA_GPU_ENGINE_STEP_BUILD 10 |
| 535 | const OMEGA_GPU_ENGINE_STEP_SUBMIT 11 |
| 536 | const OMEGA_GPU_ENGINE_STEP_WAIT_MARKER 12 |
| 537 | const OMEGA_GPU_ENGINE_STEP_WAIT_MARKER2 13 |
| 538 | const OMEGA_GPU_ENGINE_STEP_WAIT_RELEASE_SEMAPHORE 14 |
| 539 | const OMEGA_GPU_ENGINE_STEP_BARRIER 15 |
| 540 | const OMEGA_GPU_ENGINE_STEP_COPY_OUT 16 |
| 541 | const OMEGA_GPU_ENGINE_STEP_SCAN 17 |
| 542 | const OMEGA_GPU_ENGINE_STEP_FREE 18 |
| 543 | const OMEGA_GPU_ENGINE_STEP_CLOSE 19 |
| 544 | const OMEGA_GPU_ENGINE_STEP_CLOCK_CHECK 20 |
| 545 | const OMEGA_GPU_ENGINE_STEP_COUNT 21 |
| 546 | const OMEGA_GPU_LAYOUT_VECTOR_1D 0 |
| 547 | const OMEGA_GPU_LAYOUT_COUNT 1 |
| 548 | const OMEGA_GPU_BUF_SCRATCH 0 |
| 549 | const OMEGA_GPU_BUF_PROGRAM 1 |
| 550 | const OMEGA_GPU_BUF_INPUT_A 2 |
| 551 | const OMEGA_GPU_BUF_INPUT_B 3 |
| 552 | const OMEGA_GPU_BUF_OUTPUT 4 |
| 553 | const OMEGA_GPU_BUF_ROLE_COUNT 5 |