Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
ng/gpu: pinned CUDApp encoder conformance gate + ng-gpu-arm64 CI (Hive NG D10)
mergedd379cc1289e1d848 #1076 · opened 2026-11-07 08:14 UTC · closed 2026-11-15 14:36 UTC · merged 2026-11-15 14:36 UTC
Imported from GitHub aien-dev/omega-mv#1076, by drakestapleton
Base 943d955531b9d4d9f70deb41756c0b46441dd5e0 · Head 5d7a5611f90b4f1b284761e3931d0f41f6c940ae
Merged on GitHub as 5d7a5611f90b4f1b284761e3931d0f41f6c940ae; reachable from main c7acd2607139eedfabeac16b6042cefe8ede431f (observed 2026-11-18T16:35:36Z)
drakestapleton wrote on 2026-11-07 08:14 UTC
Hive NG lane ng-gpu (D10: consume CUDApp's seeded GPU units by pin, never copy them).
What this adds
seed/ng/cudapp.lock: the aien-dev/CUDApp commit ng consumes (om/encoder/bw_enc_sm121.om, om/components/bw_alloc.om, om/cubin/cubin_elf.om, native/blackwell/launch.om, native/nvrm/context.om) plus each file's sha256, for seed/ng/ngbuild.om to check (ng-ir's D1b builder).
seed/ng/gpu/encrun.om: program-mode conformance harness composed after the pinned encoder (NGBWENC1 frames in, encoded bytes out).
seed/ng/gpu/gate.cases + tests/: 12 cases for seed/qualification/om2/gate.om: compiled-bytes pin of the encoder, golden / dump / corpus-slice (52 of 3265 frames) / LDG fixtures captured from CUDApp's own C builders, 2 malformed-input refusals, the 4 CUDApp encoder mutants (all killed).
.github/workflows/ng-gpu-arm64.yml (approved by omp-queen-ng): births omc from the seed, requires seed/out/omc.sha256, checks out CUDApp at the lock, runs the gate. One-line run steps; logic lives in gate.om.
Evidence (HOST_TESTED)
Fresh clone of this branch + CUDApp at the lock, exactly the workflow's steps on the Spark (core 1): omc born from seed equals 5f90edea…6df, OM2GATE PASS cases=12 pass=12 fail=0 invalid=0 not_run=0.
Negative control: against CUDApp main b774723f's encoder the gate FAILS enc-pin, slice and ldg (that encoder drops LDG.E byte offsets; fixed in aien-dev/CUDApp#373) and mut4 is INVALID. Logs: ~/handoffs/hive-ng/gpu/evidence/ng-gate/.
Nothing here runs on the GPU; CHIP_TESTED: none.
Dependency
The lock pins CUDApp#373's head 870fd16c. When #373 merges, this PR repins to the merge commit (and the enc-pin sha if the merged bytes differ) before READY.
No compiler or language change (no omc.om edit), so no omega-harness guide change.
Apply it
git checkout -b patch-d379cc1289e1d848943d955531b9d4d9f70deb41756c0b46441dd5e0
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/d379cc1289e1d848.patch | git am
diff --git a/.github/workflows/ng-gpu-arm64.yml b/.github/workflows/ng-gpu-arm64.yml
new file mode 100644
index 000000000..dcac87680
--- /dev/null
+++ b/.github/workflows/ng-gpu-arm64.yml
@@ -0,0 +1,32 @@
+# ng-gpu-arm64: Hive NG lane ng-gpu gate on a GitHub-hosted ubuntu-24.04-arm machine (LANE-NG CI convention).
+# Births omc from the seed and requires the committed seed/out/omc.sha256, checks out aien-dev/CUDApp at the commit
+# in seed/ng/cudapp.lock as the sibling ../CUDApp, builds seed/qualification/om2/gate.om with that omc and runs
+# seed/ng/gpu/gate.cases. All logic lives in the .om gate; every run line is one invocation.
+name: ng-gpu-arm64
+on:
+ pull_request:
+ paths: ["seed/ng/gpu/**", "seed/ng/src/gpu.om", "seed/ng/cudapp.lock", "seed/qualification/om2/gate.om", ".github/workflows/ng-gpu-arm64.yml"]
+ push:
+ branches: [main]
+permissions:
+ contents: read
+jobs:
+ ng-gpu:
+ runs-on: ubuntu-24.04-arm
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - name: machine
+ run: uname -a; nproc
+ - name: omc born from the seed
+ run: sh seed/omega-from-seed.sh
+ - name: omc equals the committed seed/out/omc.sha256
+ run: git diff --exit-code seed/out/omc.sha256
+ - name: CUDApp clone as ../CUDApp
+ run: git clone --quiet https://github.com/aien-dev/CUDApp.git ../CUDApp
+ - name: CUDApp at the commit in seed/ng/cudapp.lock
+ run: git -C ../CUDApp checkout --quiet --detach "$(grep -v -m1 '^#' seed/ng/cudapp.lock)"
+ - name: build the om2 gate driver
+ run: seed/out/omc < seed/qualification/om2/gate.om > ../gate && chmod +x ../gate
+ - name: gate seed/ng/gpu/gate.cases
+ run: ../gate seed/out/omc "$(cut -c1-64 seed/out/omc.sha256)" seed/ng/gpu/gate.cases ../ng-gpu-gate
diff --git a/seed/ng/cudapp.lock b/seed/ng/cudapp.lock
new file mode 100644
index 000000000..7476b19d9
--- /dev/null
+++ b/seed/ng/cudapp.lock
@@ -0,0 +1,10 @@
+# seed/ng/cudapp.lock: the aien-dev/CUDApp commit Omega NG consumes its seeded GPU units from (Hive NG D10).
+# Checked out as the sibling directory ../CUDApp at build and gate time (like om/omega-bridge.lock).
+# First non-comment line: the commit. Then sha256 and path of each file ng composes; a build must refuse when a
+# file's sha256 differs. Owner: ng-gpu. Current pin: CUDApp#373 head (LDG.E offset fix); moves to its merge commit.
+870fd16ceb14ceb0dccfc6364a251f3b2dfe3c2b
+75385d51928dc28eec8c144cfd18385fc10d9c1e6e851e24e3db025397b77db2 om/encoder/bw_enc_sm121.om
+d19186b871f96c3983818cdd1a159f829c2f117f7e5c051d1f51fb39d846399b om/components/bw_alloc.om
+2f7da01ac19e77702be871cd01dacde193b9e5419ad1e4a3d333e64f32af2200 om/cubin/cubin_elf.om
+d04e1a304a6f985a1bc51011660a22f694a6d95924cdb73df014f7e50d26814f native/blackwell/launch.om
+bd5be905568552d48dd477cbeff1e287940e6f6bfd9e31a4e68d53d6c60ae3bb native/nvrm/context.om
diff --git a/seed/ng/gpu/README.md b/seed/ng/gpu/README.md
new file mode 100644
index 000000000..ff345c65a
--- /dev/null
+++ b/seed/ng/gpu/README.md
@@ -0,0 +1,39 @@
+# seed/ng/gpu: the sm_121 path of Omega NG (Hive NG lane ng-gpu)
+
+Omega NG's GPU stage turns ΩIR kernel functions into sm_121 machine code and launches it. Per Hive NG decision D10 it
+does not copy CUDApp's seeded units: it consumes `om/encoder/bw_enc_sm121.om`, `om/components/bw_alloc.om` and
+`om/cubin/cubin_elf.om` from aien-dev/CUDApp at the commit pinned in `seed/ng/cudapp.lock`, checked out as the sibling
+directory `../CUDApp`. ng-gpu's own code is `seed/ng/src/gpu.om` (functions `gp_`, globals `g_`), which does not
+exist yet: it waits for ng-ir's ΩIR kernel form.
+
+What is here today: the conformance gate of the encoder ng consumes.
+
+| File | Role |
+|---|---|
+| `encrun.om` | Program-mode harness composed after the pinned encoder: NGBWENC1 frames in, result frames out (format in its header). |
+| `gate.cases` | Case list for `seed/qualification/om2/gate.om`: compiled-bytes pin of the encoder, 4 fixture sets, 3 refusals, 4 mutants. |
+| `tests/golden.*` | 145 single-instruction encodes of CUDApp's golden fixtures (140 accepted, 5 refused). |
+| `tests/dump.*` | 14 fixture programs of CUDApp's codegen dump. |
+| `tests/slice.*` | 52 frames (every 64th of 3265, plus the last) of CUDApp's sm121dis corpus producers. |
+| `tests/ldg.*` | The bw_hazard_test program (310 insns) with two LDG.E +0x40 loads (CUDApp#373). |
+| `tests/badmagic.*`, `tests/trunc.*` | Malformed input: exit 2 / exit 3 with one stderr line. |
+| `tests/m1..m4.{from,to}` | Encoder mutants (CUDApp mk/om-encoder.mk OM_ENC_MUTANTS 1..4), applied by `subst`. |
+
+Run from the repository root, with CUDApp at the lock's commit in `../CUDApp`:
+
+ seed/out/omc < seed/qualification/om2/gate.om > /tmp/gate && chmod +x /tmp/gate
+ /tmp/gate seed/out/omc "$(cut -c1-64 seed/out/omc.sha256)" seed/ng/gpu/gate.cases /tmp/ng-gpu-gate
+
+Final line `OM2GATE PASS cases=12 pass=12 ...`.
+
+## Fixture provenance
+Inputs were captured from CUDApp's real C builders (`tests/test_omega_codegen_freestanding.c --golden/--dump` and
+`tools/sm121dis/corpus.sh` producers, CUDApp b774723f) through a link-time wrap of `omega_bw_enc_sm121` that appends
+each call's arguments and result to a file. The wrap and the C-oracle replayer are referee instruments, kept outside
+this repository (CUDApp `evidence/ldg-offset-20261107/ngcap.c`, `encref.c`); nothing here builds or runs C. Expected
+outputs: golden and dump are the bytes on which CUDApp's `.om` encoder and its C oracle agreed; slice and ldg are the C
+oracle's bytes, which the pinned `.om` encoder reproduces and CUDApp main b774723f's does not (LDG.E offset defect).
+
+## Status
+HOST_TESTED (Linux AArch64): 12/12 PASS against the pinned encoder; against CUDApp main b774723f's encoder the pin,
+slice and ldg cases FAIL, as they must. No GPU involved.
diff --git a/seed/ng/gpu/encrun.om b/seed/ng/gpu/encrun.om
new file mode 100644
index 000000000..e5a9cc84d
--- /dev/null
+++ b/seed/ng/gpu/encrun.om
@@ -0,0 +1,159 @@
+note SPDX-License-Identifier: Apache-2.0
+note seed/ng/gpu/encrun.om: conformance harness for the sm_121 encoder ng consumes (Hive NG lane ng-gpu, D10).
+note Not an encoder: it composes AFTER CUDApp's om/encoder/bw_enc_sm121.om at the sha in seed/ng/cudapp.lock:
+note cat ../CUDApp/om/encoder/bw_enc_sm121.om seed/ng/gpu/encrun.om | seed/out/omc > encrun
+note Program mode, AArch64 Linux. stdin is a stream of NGBWENC1 frames, stdout one result frame per input frame.
+note Input frame (every word a 64-bit little-endian unsigned):
+note 8 bytes "NGBWENC1" | n | pad | 288 words phys | n*8 words ins (none when n > 1024)
+note phys and ins are exactly the arrays bw_enc_sm121 takes (see its header): 8 words per solved BlackwellIR
+note instruction, vreg 0..255 then uvreg 256..287 physical registers. ins words past n*8 are zero, as the
+note CUDApp C caller zeroes them. pad 1: NOP-pad to a multiple of 8, at least 32 instructions.
+note Output frame: one word r (the bytes encoded; 0 = refused) then the r code bytes.
+note Exit: 0 after a whole number of frames; 2 bad magic; 3 truncated frame; 4 read error; 5 write error,
+note each with one stderr line. Output written before an error stays written.
+
+text g_emag "NGBWENC1"
+text g_em2 "encrun: bad frame magic\n"
+text g_em3 "encrun: truncated frame\n"
+text g_em4 "encrun: read error\n"
+text g_em5 "encrun: write error\n"
+
+fn gp_efail c ulong to int
+if eq c 2
+k = write 2 g_em2 0 len g_em2
+end
+if eq c 3
+k = write 2 g_em3 0 len g_em3
+end
+if eq c 4
+k = write 2 g_em4 0 len g_em4
+end
+if eq c 5
+k = write 2 g_em5 0 len g_em5
+end
+ret int c
+end
+
+note exactly n bytes of stdin into b from 0: n, fewer only at the end of input, -1 on a read error
+fn gp_eread b edit uchar 65536 n ulong to long
+got = ulong 0
+note every pass consumes at least one byte of at most 65536
+while lt got n bound 65537
+k = read 0 b got sub n got
+if lt k 0
+ret -1
+end
+if eq k 0
+ret long got
+end
+got = add got ulong k
+end
+ret long got
+end
+
+note all n bytes of b to stdout: 0, or 1 on a write error or a zero-length write
+fn gp_ewrite b view uchar 16392 n ulong to ulong
+wr = ulong 0
+while lt wr n bound 16393
+k = write 1 b wr sub n wr
+if le k 0
+ret 1
+end
+wr = add wr ulong k
+end
+ret 0
+end
+
+fn gp_ele b view uchar 65536 off ulong to ulong
+w = ulong 0
+for i ulong 8
+w = or w shl ulong get b add off i mul i 8
+end
+ret w
+end
+
+note one frame body after the 24 header bytes into phys and ins; gives 0, or the exit code
+fn gp_eframe ib edit uchar 65536 n ulong ins edit ulong 8192 phys edit ulong 288 to ulong
+k = gp_eread ib 2304
+if lt k 0
+ret 4
+end
+if ne k 2304
+ret 3
+end
+for i ulong 288
+put phys i gp_ele ib mul i 8
+end
+for i ulong 8192
+put ins i 0
+end
+rows = n
+if gt n 1024
+rows = 0
+end
+if gt rows 0
+nb = mul rows 64
+k = gp_eread ib nb
+if lt k 0
+ret 4
+end
+if ne ulong k nb
+ret 3
+end
+for i ulong mul rows 8
+put ins i gp_ele ib mul i 8
+end
+end
+ret 0
+end
+
+note encode one frame and write its result frame; gives 0, or the exit code
+fn gp_eout ins view ulong 8192 phys view ulong 288 n ulong pad ulong ob edit uchar 16392 to ulong
+code = new uchar 16384 0
+r = bw_enc_sm121 ins phys n pad code
+for i ulong 8
+put ob i uchar and shr r mul i 8 255
+end
+for i ulong r
+put ob add i 8 get code i
+end
+if ne gp_ewrite ob add r 8 0
+ret 5
+end
+ret 0
+end
+
+fn main to int
+ib = new uchar 65536 0
+ins = new ulong 8192 0
+phys = new ulong 288 0
+ob = new uchar 16392 0
+note at most 1000000 frames: each frame is at least 2328 bytes
+while true bound 1000000
+k = gp_eread ib 24
+if lt k 0
+ret gp_efail 4
+end
+if eq k 0
+ret 0
+end
+if ne k 24
+ret gp_efail 3
+end
+for i ulong 8
+if ne get ib i get g_emag i
+ret gp_efail 2
+end
+end
+n = gp_ele ib 8
+pad = gp_ele ib 16
+c = gp_eframe ib n ins phys
+if eq c 0
+c = gp_eout ins phys n pad ob
+end
+if ne c 0
+ret gp_efail c
+end
+end
+ret 0
+end
diff --git a/seed/ng/gpu/gate.cases b/seed/ng/gpu/gate.cases
new file mode 100644
index 000000000..5516493d8
--- /dev/null
+++ b/seed/ng/gpu/gate.cases
@@ -0,0 +1,28 @@
+# seed/ng/gpu/gate.cases: conformance of the sm_121 encoder ng consumes (Hive NG lane ng-gpu, D10).
+# Driver: seed/qualification/om2/gate.om, run from the repository root with CUDApp checked out at the sha of
+# seed/ng/cudapp.lock as the sibling directory ../CUDApp:
+# gate seed/out/omc <omc sha256> seed/ng/gpu/gate.cases <new scratch dir>
+# Inputs: NGBWENC1 frames (seed/ng/gpu/encrun.om header) captured from CUDApp's own C builders through a link-time
+# wrap of omega_bw_enc_sm121 (referee instrument, seed/ng/gpu/README.md). Expected outputs: CUDApp's .om encoder
+# and its C oracle agree on golden and dump; slice and ldg are the C oracle's bytes (the .om at the lock sha matches
+# them; CUDApp main b774723f does not on ldg: LDG.E offset defect).
+deadline 120
+# pin: the encoder source compiles (function mode) to exactly these bytes; any semantic change to the pinned unit
+# changes them and fails here before any fixture runs
+enc-pin emit ../CUDApp/om/encoder/bw_enc_sm121.om sha:7876057a77a0868bb4f54e301ec8eb5b99bec9d399ae82cf67f3ede229fb1c9f - 0
+enc-golden run ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/golden.in file:seed/ng/gpu/tests/golden.out - 0
+enc-dump run ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/dump.in file:seed/ng/gpu/tests/dump.out - 0
+enc-slice run ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/slice.in file:seed/ng/gpu/tests/slice.out - 0
+enc-ldg run ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/ldg.in file:seed/ng/gpu/tests/ldg.out - 0
+enc-empty run ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om - - - 0
+enc-badmagic run ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/badmagic.in - file:seed/ng/gpu/tests/badmagic.err 2
+enc-trunc run ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/trunc.in - file:seed/ng/gpu/tests/trunc.err 3
+# mutants of the pinned encoder (CUDApp mk/om-encoder.mk OM_ENC_MUTANTS 1..4): each must change the output
+subst seed/ng/gpu/tests/m1.from seed/ng/gpu/tests/m1.to
+enc-mut1 kill ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/golden.in file:seed/ng/gpu/tests/golden.out - 0
+subst seed/ng/gpu/tests/m2.from seed/ng/gpu/tests/m2.to
+enc-mut2 kill ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/dump.in file:seed/ng/gpu/tests/dump.out - 0
+subst seed/ng/gpu/tests/m3.from seed/ng/gpu/tests/m3.to
+enc-mut3 kill ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/dump.in file:seed/ng/gpu/tests/dump.out - 0
+subst seed/ng/gpu/tests/m4.from seed/ng/gpu/tests/m4.to
+enc-mut4 kill ../CUDApp/om/encoder/bw_enc_sm121.om+seed/ng/gpu/encrun.om file:seed/ng/gpu/tests/ldg.in file:seed/ng/gpu/tests/ldg.out - 0
diff --git a/seed/ng/gpu/tests/badmagic.err b/seed/ng/gpu/tests/badmagic.err
new file mode 100644
index 000000000..3a93add88
--- /dev/null
+++ b/seed/ng/gpu/tests/badmagic.err
@@ -0,0 +1 @@
+encrun: bad frame magic
diff --git a/seed/ng/gpu/tests/badmagic.in b/seed/ng/gpu/tests/badmagic.in
new file mode 100644
index 000000000..b86515237
Binary files /dev/null and b/seed/ng/gpu/tests/badmagic.in differ
diff --git a/seed/ng/gpu/tests/dump.in b/seed/ng/gpu/tests/dump.in
new file mode 100644
index 000000000..fe104b9f2
Binary files /dev/null and b/seed/ng/gpu/tests/dump.in differ
diff --git a/seed/ng/gpu/tests/dump.out b/seed/ng/gpu/tests/dump.out
new file mode 100644
index 000000000..200749433
Binary files /dev/null and b/seed/ng/gpu/tests/dump.out differ
diff --git a/seed/ng/gpu/tests/golden.in b/seed/ng/gpu/tests/golden.in
new file mode 100644
index 000000000..f8689ae27
Binary files /dev/null and b/seed/ng/gpu/tests/golden.in differ
diff --git a/seed/ng/gpu/tests/golden.out b/seed/ng/gpu/tests/golden.out
new file mode 100644
index 000000000..c78494680
Binary files /dev/null and b/seed/ng/gpu/tests/golden.out differ
diff --git a/seed/ng/gpu/tests/ldg.in b/seed/ng/gpu/tests/ldg.in
new file mode 100644
index 000000000..5a5ba6cd4
Binary files /dev/null and b/seed/ng/gpu/tests/ldg.in differ
diff --git a/seed/ng/gpu/tests/ldg.out b/seed/ng/gpu/tests/ldg.out
new file mode 100644
index 000000000..c5a4e0835
Binary files /dev/null and b/seed/ng/gpu/tests/ldg.out differ
diff --git a/seed/ng/gpu/tests/m1.from b/seed/ng/gpu/tests/m1.from
new file mode 100644
index 000000000..6f92fd0fa
--- /dev/null
+++ b/seed/ng/gpu/tests/m1.from
@@ -0,0 +1,2 @@
+
+ret or base shl rb o 1 16
diff --git a/seed/ng/gpu/tests/m1.to b/seed/ng/gpu/tests/m1.to
new file mode 100644
index 000000000..8971fa499
--- /dev/null
+++ b/seed/ng/gpu/tests/m1.to
@@ -0,0 +1,2 @@
+
+ret or base shl rb o 1 17
diff --git a/seed/ng/gpu/tests/m2.from b/seed/ng/gpu/tests/m2.from
new file mode 100644
index 000000000..5b8bb44c5
--- /dev/null
+++ b/seed/ng/gpu/tests/m2.from
@@ -0,0 +1,2 @@
+
+p = 262144
diff --git a/seed/ng/gpu/tests/m2.to b/seed/ng/gpu/tests/m2.to
new file mode 100644
index 000000000..a95751642
--- /dev/null
+++ b/seed/ng/gpu/tests/m2.to
@@ -0,0 +1,2 @@
+
+p = 0
diff --git a/seed/ng/gpu/tests/m3.from b/seed/ng/gpu/tests/m3.from
new file mode 100644
index 000000000..f29ad9c28
--- /dev/null
+++ b/seed/ng/gpu/tests/m3.from
@@ -0,0 +1,2 @@
+
+const NOPC ulong 1032192
diff --git a/seed/ng/gpu/tests/m3.to b/seed/ng/gpu/tests/m3.to
new file mode 100644
index 000000000..41553560c
--- /dev/null
+++ b/seed/ng/gpu/tests/m3.to
@@ -0,0 +1,2 @@
+
+const NOPC ulong 1032193
diff --git a/seed/ng/gpu/tests/m4.from b/seed/ng/gpu/tests/m4.from
new file mode 100644
index 000000000..ad159f210
--- /dev/null
+++ b/seed/ng/gpu/tests/m4.from
@@ -0,0 +1,2 @@
+
+put4 w wda o 31105 or rb o 5 shl and imm 16777215 8 203299072 ctl o 991744
diff --git a/seed/ng/gpu/tests/m4.to b/seed/ng/gpu/tests/m4.to
new file mode 100644
index 000000000..53330ed95
--- /dev/null
+++ b/seed/ng/gpu/tests/m4.to
@@ -0,0 +1,2 @@
+
+put4 w wda o 31105 rb o 5 203299072 ctl o 991744
diff --git a/seed/ng/gpu/tests/slice.in b/seed/ng/gpu/tests/slice.in
new file mode 100644
index 000000000..4c1938388
Binary files /dev/null and b/seed/ng/gpu/tests/slice.in differ
diff --git a/seed/ng/gpu/tests/slice.out b/seed/ng/gpu/tests/slice.out
new file mode 100644
index 000000000..4d437b360
Binary files /dev/null and b/seed/ng/gpu/tests/slice.out differ
diff --git a/seed/ng/gpu/tests/trunc.err b/seed/ng/gpu/tests/trunc.err
new file mode 100644
index 000000000..c8dfb19c6
--- /dev/null
+++ b/seed/ng/gpu/tests/trunc.err
@@ -0,0 +1 @@
+encrun: truncated frame
diff --git a/seed/ng/gpu/tests/trunc.in b/seed/ng/gpu/tests/trunc.in
new file mode 100644
index 000000000..9a488d437
Binary files /dev/null and b/seed/ng/gpu/tests/trunc.in differ