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/nvidia/checks/arest-tile.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 / nvidia / checks / arest-tile.om` 106 lines ยท 2038 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note gpu/nvidia/checks/arest-tile.om: the units over gpu/nvidia/om/apirest/tiledata.om: argroups, arrun, artiles, 3 note artile, artg, argtile, as tile_parts() and misc_parts() of CUDApp tests/api_rest_partitions.h call them. 4 note Composed before arestg.om. 5 text t_name "AREST-TILE" 6 text t_groups "groups" 7 text t_run "run" 8 text t_tiles "tiles" 9 text t_tile "tile" 10 text t_tg "tg" 11 text t_gtile "gtile" 12 note Q the four q words, n, n ids, n rows 13 fn ax_groups q view ulong 256 nq ulong to ulong 14 n = get q 4 15 if or gt n 64 ne nq add 5 mul n 2 16 ckbad 17 end 18 a = new ulong 4 0 19 for i ulong 4 20 put a i get q i 21 end 22 ids = new uint 64 0 23 rows = new uint 64 0 24 for i ulong n bound 64 25 put ids i uint get q add 5 i 26 put rows i uint get q add add 5 n i 27 end 28 ret argroups a part ids 0 n part rows 0 n 29 end 30 note Q i, n, n ids 31 fn ax_run q view ulong 256 nq ulong to ulong 32 n = get q 1 33 if or gt n 64 ne nq add 2 n 34 ckbad 35 end 36 ids = new uint 64 0 37 for i ulong n bound 64 38 put ids i uint get q add 2 i 39 end 40 ret arrun get q 0 part ids 0 n 41 end 42 note Q the eight q words; for tiles (m 0) three counts follow; m 1 is artile, 2 artg, 3 argtile (q edited) 43 fn ax_t q view ulong 256 ny ulong o edit ulong 256 m ulong to ulong 44 if gt ny 128 45 ckbad 46 end 47 a = new ulong 8 0 48 for i ulong 8 49 put a i get q i 50 end 51 cnt = new uint 3 0 52 if eq m 0 53 for i ulong 3 54 put cnt i uint get q add 8 i 55 end 56 end 57 y = new ulong 128 0x5a5a5a5a5a5a5a5a 58 r = ulong 0 59 if eq m 0 60 r = artiles a part cnt 0 3 part y 0 ny 61 end 62 if eq m 1 63 r = artile a part y 0 ny 64 end 65 if eq m 2 66 r = artg a part y 0 ny 67 end 68 if eq m 3 69 r = argtile a part y 0 ny 70 end 71 for i ulong 128 72 put o i get y i 73 end 74 for i ulong 8 75 put o add 128 i get a i 76 end 77 ret r 78 end 79 fn arop q view ulong 256 nq ulong ny ulong o edit ulong 256 to ulong 80 if ckis 0 t_groups 81 ret ax_groups q nq 82 end 83 if ckis 0 t_run 84 ret ax_run q nq 85 end 86 if ckis 0 t_tiles 87 if ne nq 11 88 ckbad 89 end 90 ret ax_t q ny o 0 91 end 92 if ne nq 8 93 ckbad 94 end 95 if ckis 0 t_tile 96 ret ax_t q ny o 1 97 end 98 if ckis 0 t_tg 99 ret ax_t q ny o 2 100 end 101 if ckis 0 t_gtile 102 ret ax_t q ny o 3 103 end 104 ckbad 105 ret 0 106 end