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/aien-train/blob/main/native/omegallm/gpu/vector.om # aien-train AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished. 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 `aien-train / native / omegallm / gpu / vector.om` 49 lines ยท 1701 bytes Raw Blame History 1 note SPDX-License-Identifier: AGPL-3.0-only 2 note Seed vecadd.s2 instruction forms, handwritten Omega emission of the same512bytes. 3 note Each quad is one128-bit instruction. References: Omega57f5f425 seed/sm121. 4 global gbcode uchar 4096 5 global gblen ulong 1 6 fn gbword v uint to void 7 for j ulong 4 8 put gbcode get gblen 0 uchar and shr v mul j 8 255 9 put gblen 0 add get gblen 0 1 10 end 11 end 12 fn gbquad a uint b uint c uint d uint to void 13 gbword a 14 gbword b 15 gbword c 16 gbword d 17 end 18 fn gbvec to void 19 put gblen 0 0 20 note Stack constant, block ID, block size, thread ID and element count. 21 gbquad `4278287234` 57088 2048 `1040896` 22 gbquad 620825 0 9472 926208 23 gbquad `4278482860` 27648 `134219776` 926208 24 gbquad 31001 0 8448 926208 25 gbquad `4278548396` 29440 `134219776` 942592 26 note Linear index and bounds predicate; inactive threads exit before any access. 27 gbquad `151616548` 4 `260964864` `2083328` 28 gbquad `151026700` 5 `200302704` `3136000` 29 gbquad 2381 0 `58720256` `1042944` 30 note Input/output addresses and memory descriptor from the constant bank. 31 gbquad `4278352770` 57344 2560 926208 32 gbquad `4278482860` 27392 `134220288` 945664 33 gbquad `4278483842` 57856 2560 962560 34 gbquad `4278614914` 58368 2560 975360 35 note Address formation and independent input loads, retaining scheduling waits. 36 gbquad `151156773` 4 `126746626` `2083840` 37 gbquad `33716609` 4 `203299072` `3088896` 38 gbquad `151287845` 4 `126746628` `5229568` 39 gbquad `67467649` 4 `203299072` 991744 40 gbquad `151418917` 4 `126746630` `9429504` 41 note Unsigned32-bit addition, output store, exit and unreachable self-branch guard. 42 gbquad `34173456` 5 `134209791` `17811968` 43 gbquad `100694406` 9 `202381572` `1040896` 44 gbquad 31053 0 `58720256` `1042944` 45 gbquad `16546119` `4294967292` `58982399` `1032192` 46 for i ulong 11 47 gbquad 31000 0 0 `1032192` 48 end 49 end