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/tsoftmax16/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 / tsoftmax16 / omega.om` 37 lines ยท 517 bytes Raw Blame History 1 global tn ulong 1 2 fn kern to void 3 nr = mul get tn 0 16 4 for r ulong nr 5 b = mul r 32 6 m = get fa b 7 for j ulong 32 8 m = fmax m get fa add b j 9 end 10 s = 0.0f32 11 for j ulong 32 12 e = f32 oal_expf f64 sub get fa add b j m 13 put fo add b j e 14 s = add s e 15 end 16 for j ulong 32 17 put fo add b j div get fo add b j s 18 end 19 end 20 end 21 fn main to int 22 oal_begin 23 put tn 0 ulong oal_p 0 24 nx = oal_fa 0 25 w = oal_warm 26 for r ulong add w oal_reps 27 t0 = monons 28 kern 29 t1 = monons 30 if ge r w 31 oal_tick sub t1 t0 32 end 33 end 34 oal_so 0 mul get tn 0 512 35 oal_end 36 ret 0 37 end