interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / evidence / AMD-GFX942-BF16GEMV-20261112T223732Z / README.md

28 lines · 3694 bytes Raw Blame History Rendered
1# BF16 GEMV host acceptance receipt
2
3Intent (Main's assignment): implement gfx942 row-major little-endian BF16 GEMV for Qwen weights, preserving FP32 x and ascending-k single-rounded FMA, with host-checkable instruction semantics and independent reference outputs.
4
5Candidate branch: amdserve/gfx942-bf16gemv. The commit containing this receipt is the candidate revision; `base.commit` records its parent. No push, merge, hardware access, services, installation or deployment occurred.
6
7## Command and observed exits
8
9Working directory: `/home/drakestapleton/work/hive/amdserve/Gfx942Exec/bf16gemv`.
10The only acceptance run (first attempt) was:
11
12```sh
13flock /home/drakestapleton/handoffs/hive/queen/pool-14.lock nice -n 10 sh -c 'AMD_OUT=/home/drakestapleton/work/hive/amdserve/Gfx942Exec/bf16-host-out-1 sh tests/amd/run.sh /home/drakestapleton/work/hive/amdserve/AmdGfx942/pin/omc > ../bf16-host-1.log 2>&1; h=$?; echo host_exit=$h; AMD_EXEC_OUT=/home/drakestapleton/work/hive/amdserve/Gfx942Exec/bf16-exec-out-1 sh tests/amd-exec/run.sh /home/drakestapleton/work/hive/amdserve/AmdGfx942/pin/omc > ../bf16-exec-1.log 2>&1; e=$?; echo exec_exit=$e; cat ../bf16-host-1.log ../bf16-exec-1.log; test "$h" -eq 0 && test "$e" -eq 0'
14```
15
16Observed `host_exit=0`, `exec_exit=0`, combined command exit0. `gate-summary.txt` is extracted from those logs, not a separate check. `host-last15.txt` and `exec-last15.txt` preserve their last15 lines. `compile/` preserves compiler stderr; no compiler or assembler error was encountered in this slice. No gate was retried or weakened.
17
18## Design and acceptance boundary
19
20- BF16-to-FP32 is exact bit widening: unsigned16 shifted left16. Initialize the weight VGPR to zero once, then use GLOBAL_LOAD_SHORT_D16_HI on each iteration. Its low16 preservation avoids a per-weight shift; this is an instruction-count choice, not measured GPU performance.
21- The only new executor opcode is that high-half load. Exactly two little-endian bytes are read; destination low16, flags and inactive lanes are preserved. Manual-derived single-step cases include special BF16 encodings, lane63, negative offset, final-halfword and short-memory boundaries, refused alternate forms and a low-half-clearing mutant.
22- Whole-memory comparison checks outputs and guards for the required Cartesian M/K table, finite/special inputs, isolated special-weight classes, a two-byte-aligned/non-dword-aligned W base and overdispatch. Expected values use exact Fraction BF16 interpretation and rational nearest-even FMA.
23- Executable controls swap the weight's byte pair and truncate x to BF16 before FMA. Both run successfully and are caught by output-bit mismatches. All older controls remain; the summary derives counts from case tables.
24- Two producer builds, two executor builds and two emissions of every kernel are byte-identical. Previously accepted vadd, fsum16, corrected SGEMM and FP8 GEMV object digests are checked unchanged. Complete BF16 instruction/metadata/descriptor comparison against LLVM18 passes, with ET_REL entry displacement handled separately.
25
26PROVENANCE section14 cites every kernel instruction's CDNA3 manual page and LLVM18.1.3 encoding source. The exact manual file digest is in `authorities.sha256`. `inputs.sha256` records gate inputs, and `artifacts.sha256` records retained build results. Python3.12.3 and LLVM18.1.3 are independent test oracles, not production dependencies.
27
28IMPLEMENTED / EXERCISED on host. Hardware qualification, AMD dispatch, ROCr loading, NaN payload parity, timing/throughput, Qwen end-to-end inference, MERGED and DEPLOYED: **NOT_RUN**. No child agent or running process remains. Parent Main owns independent review and integration.