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
omega-mv / gpu / amd / tests / amd-exec / row-probe.om
| 1 | note Test-only entry: execute specified row IDs, retaining the real full M/K and row stride. |
| 2 | fn main to int |
| 3 | if lt argcnt 4 |
| 4 | ret 64 |
| 5 | end |
| 6 | put st 0 openarg 1 0 |
| 7 | put st 1 filesize get st 0 |
| 8 | if or eq get st 1 0 ne and get st 1 3 0 |
| 9 | ret 65 |
| 10 | end |
| 11 | validate |
| 12 | put st 2 openarg 2 2 |
| 13 | put st 3 filesize get st 2 |
| 14 | for i ulong sub ulong argcnt 3 |
| 15 | wave gridarg add i 3 0 |
| 16 | end |
| 17 | if ne fclose int get st 2 0 |
| 18 | ret 74 |
| 19 | end |
| 20 | if ne fclose int get st 0 0 |
| 21 | ret 74 |
| 22 | end |
| 23 | ret 0 |
| 24 | end |