interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / kflow / specs / tsoftmax.spec

35 lines · 1523 bytes Raw Blame History
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).
5tool asm2 seed/rung2/asm2.bin
6tool nvdisasm /usr/local/cuda/bin/nvdisasm
7tool cuobjdump /usr/local/cuda/bin/cuobjdump
8tool kemu build/kflow/kemu
9tool kpack build/kflow/kpack
10
11job tsmx 121 seed/sm121/sm121.tbl seed/kflow/sm121/tsoftmax.s2 - tsmx 20 p8 p8
12expect encode VALID-UNPROVEN
13expect verify VALID-UNPROVEN
14expect package VALID-UNPROVEN
15expect emulate VALID-UNPROVEN
16expect gpu NOT_RUN
17expect cloud NOT_RUN
18expect 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
23tsub shfl.bfly.1 0x0c001f00 0x08001f00
24job tsmxdn 121 seed/sm121/sm121.tbl seed/kflow/sm121/tsoftmax.s2 - tsmx 20 p8 p8
25expect verify INVALID
26expect emulate NOT_RUN
27expect job INVALID
28
29# negative control 1b: the same with the intent texts ignored; the emulator must catch it alone
30nointent
31tsub shfl.bfly.1 0x0c001f00 0x08001f00
32job tsmxdne 121 seed/sm121/sm121.tbl seed/kflow/sm121/tsoftmax.s2 - tsmx 20 p8 p8
33expect verify INCOMPLETE
34expect emulate INVALID
35expect job INVALID