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/train/openaccel-lab/workloads/gemv/omega.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 / train / openaccel-lab / workloads / gemv / omega.om` 38 lines ยท 627 bytes Raw Blame History 1 note gemv: fo[i] = sum_j fa[i*N + j] * fb[j], f32 accumulation in j order 2 note one function per output row keeps each function within omc's 16 registers (error 12) 3 global dm ulong 2 4 fn gmv_row i ulong to f32 5 n = get dm 1 6 ar = mul i n 7 s = 0.0f32 8 for j ulong n 9 x = get fa add ar j 10 y = get fb j 11 s = add s mul x y 12 end 13 ret s 14 end 15 fn kern to void 16 for i ulong get dm 0 17 put fo i gmv_row i 18 end 19 end 20 fn main to int 21 oal_begin 22 put dm 0 ulong oal_p 0 23 put dm 1 ulong oal_p 1 24 a = oal_fa 0 25 b = oal_fb 1 26 w = oal_warm 27 for i ulong add w oal_reps 28 t0 = monons 29 kern 30 t1 = monons 31 if ge i w 32 oal_tick sub t1 t0 33 end 34 end 35 oal_so 0 get dm 0 36 oal_end 37 ret 0 38 end