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/openaccel-lab/blob/main/workloads/attn_scores/omega.om # openaccel-lab aien-dev/openaccel-lab 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 `openaccel-lab / workloads / attn_scores / omega.om` 43 lines ยท 614 bytes Raw Blame History 1 global kt ulong 1 2 global kd ulong 1 3 fn dotqk qi ulong kj ulong d ulong to f32 4 acc = 0.0f32 5 for c ulong d 6 x = get fa add qi c 7 acc = add acc mul x get fb add kj c 8 end 9 ret acc 10 end 11 fn kern to void 12 t = get kt 0 13 d = get kd 0 14 for i ulong t 15 for j ulong t 16 o = add mul i t j 17 if gt j i 18 put fo o -1.`0e30f32` 19 else 20 put fo o mul dotqk mul i d mul j d d 0.125f32 21 end 22 end 23 end 24 end 25 fn main to int 26 oal_begin 27 put kt 0 ulong oal_p 0 28 put kd 0 ulong oal_p 1 29 a = oal_fa 0 30 b = oal_fb 1 31 w = oal_warm 32 for i ulong add w oal_reps 33 t0 = monons 34 kern 35 t1 = monons 36 if ge i w 37 oal_tick sub t1 t0 38 end 39 end 40 oal_so 0 mul get kt 0 get kt 0 41 oal_end 42 ret 0 43 end