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-mv/blob/main/gpu/adapters/main.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / gpu / adapters / main.om` 63 lines ยท 1923 bytes Raw Blame History 1 note gpu/adapters/main.om: deterministic hardware adapter probe, workload select & provider route CLI. 2 note Compose: si/directives/om2.om gpu/adapters/lib.om gpu/adapters/main.om 3 4 text am_banner "=== SPARK-ADAPTERS: HARDWARE ACCELERATOR & PROVIDER ADAPTER LAYER ===\n" 5 text am_probe "\n[Device Capability Table]\n" 6 text am_sel "\n[Workload-to-Adapter Selection]\n" 7 text am_w1 "workload=nvfp4_unified_96g -> " 8 text am_w2 "workload=fp8_bf16_64g -> " 9 text am_w3 "workload=fp8_512g_impossible -> " 10 text am_w4 "workload=tf32_cc12_gb10 -> " 11 12 fn main to int 13 ad_ob_reset 14 ad_ob_str am_banner 15 ad_ob_str am_probe 16 ad_ob_flush 17 18 adapter_init_default_devices 19 adapter_print_probe 20 21 ad_ob_reset 22 ad_ob_str am_sel 23 ad_ob_flush 24 25 sel = new AdapterSel false 0 0 0 0 0 26 27 note 1. 96 GiB NVFP4 + unified memory workload -> selects NVIDIA GB10 SM121 (dev 0) 28 req1 = new WorkloadReq mul 96 AD_GIB or CAP_NVFP4 CAP_UNIFIED 12 0 VENDOR_ANY true 29 st1 = adapter_select view req1 edit sel 30 ad_ob_reset 31 ad_ob_str am_w1 32 ad_ob_flush 33 adapter_print_selection view sel 34 35 note 2. 64 GiB FP8 + BF16 workload -> selects highest-scoring eligible (AMD MI300X dev 4) 36 req2 = new WorkloadReq mul 64 AD_GIB or CAP_FP8 CAP_BF16 8 0 VENDOR_ANY false 37 st2 = adapter_select view req2 edit sel 38 ad_ob_reset 39 ad_ob_str am_w2 40 ad_ob_flush 41 adapter_print_selection view sel 42 43 note 3. 512 GiB FP8 workload -> strict refusal (VRAM exceeded) 44 req3 = new WorkloadReq mul 512 AD_GIB CAP_FP8 8 0 VENDOR_ANY false 45 st3 = adapter_select view req3 edit sel 46 ad_ob_reset 47 ad_ob_str am_w3 48 ad_ob_flush 49 adapter_print_selection view sel 50 51 note 4. 32 GiB TF32 + FP8 + SM 12.1 workload -> selects NVIDIA GB10 (dev 0) 52 req4 = new WorkloadReq mul 32 AD_GIB or CAP_TF32 CAP_FP8 12 1 VENDOR_NVIDIA false 53 st4 = adapter_select view req4 edit sel 54 ad_ob_reset 55 ad_ob_str am_w4 56 ad_ob_flush 57 adapter_print_selection view sel 58 59 if or ne st1 AD_OK or ne st2 AD_OK or ne st3 AD_ERR_VRAM_EXCEEDED ne st4 AD_OK 60 ret 1 61 end 62 ret 0 63 end