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 / seed / kflow / specs / tsoftmax.spec
| 1 | # tsoftmax.spec -- row softmax (16 rows x 32 f32, one warp per row) on sm_121, OmegaTile (L3). |
| 2 | # Run from the omega-mv root: build/kflow/kflow seed/kflow/specs/tsoftmax.spec STATE |
| 3 | # Harness tsmx: x = multiples of 2^-17 in [-4, 4), y compared with an f64 CPU reference within relative |
| 4 | # 2528617 * 2^-40 (about 19.3 * 2^-23; derivation in seed/kflow/README.md). |
| 5 | tool asm2 seed/rung2/asm2.bin |
| 6 | tool nvdisasm /usr/local/cuda/bin/nvdisasm |
| 7 | tool cuobjdump /usr/local/cuda/bin/cuobjdump |
| 8 | tool kemu build/kflow/kemu |
| 9 | tool kpack build/kflow/kpack |
| 10 | |
| 11 | job tsmx 121 seed/sm121/sm121.tbl seed/kflow/sm121/tsoftmax.s2 - tsmx 20 p8 p8 |
| 12 | expect encode VALID-UNPROVEN |
| 13 | expect verify VALID-UNPROVEN |
| 14 | expect package VALID-UNPROVEN |
| 15 | expect emulate VALID-UNPROVEN |
| 16 | expect gpu NOT_RUN |
| 17 | expect cloud NOT_RUN |
| 18 | expect job VALID-UNPROVEN |
| 19 | |
| 20 | # negative control: the butterfly made a shuffle-down (SHFL mode 3 -> 2 in the table row) decodes as |
| 21 | # SHFL.DOWN, not the intent text (verify INVALID); with intents ignored the emulator must catch that the |
| 22 | # lanes no longer combine the whole row |
| 23 | tsub shfl.bfly.1 0x0c001f00 0x08001f00 |
| 24 | job tsmxdn 121 seed/sm121/sm121.tbl seed/kflow/sm121/tsoftmax.s2 - tsmx 20 p8 p8 |
| 25 | expect verify INVALID |
| 26 | expect emulate NOT_RUN |
| 27 | expect job INVALID |
| 28 | |
| 29 | # negative control 1b: the same with the intent texts ignored; the emulator must catch it alone |
| 30 | nointent |
| 31 | tsub shfl.bfly.1 0x0c001f00 0x08001f00 |
| 32 | job tsmxdne 121 seed/sm121/sm121.tbl seed/kflow/sm121/tsoftmax.s2 - tsmx 20 p8 p8 |
| 33 | expect verify INCOMPLETE |
| 34 | expect emulate INVALID |
| 35 | expect job INVALID |