Repository navigation
v0.2.0
What it include
-
A SASS encoder/decoder for sm_80 (Ampere) — opcodes, operand forms, control bits (stall, yield, scoreboards, wait masks) — recovered by bit-flip fuzzing against
nvdisasm(docs/findings-sm80-encoding.md). -
A Python / CUDA C/C++ / PTX → SASS compiler (register allocation, scheduling, 4× loop unrolling). A historical 203-probe run emitted 2,132 instructions versus ptxas's 2,249 (-5.2%). Selected microbenchmarks ranged from 0.92× to 1.36× ptxas speed; NN/ transformer baselines and their numerical mismatches are reported separately.
-
A functional SASS emulator, fitted to real A100 behaviour: tensor-core (HMMA/IMMA/DMMA) numerics bit-exact on 512/512 recorded lanes, instruction latencies measured directly on hardware (not guessed from
nvdisasm's mined minimum distances, which are provably wrong — see below). -
Division/remainder by a constant, replacing
ptxas's always-runtime reciprocal sequence with a [z3-proven](openassembler/ opt/divconst.py) multiply-high lowering: 13 → 2–3 instructions. -
Strassen / AlphaTensor fast matrix multiplication: 97 published low-rank factorizations of matrix multiply (AlphaTensor, DeepMind/Nature 2022) imported, verified exactly over the rationals, compiled by our backend, and measured against cuBLAS on an A100 at n = 8192.
-
Python and CUDA C/C++ frontends: write a kernel in a Python subset (
openassembler/pyfront/, built from scratch) or in CUDA C/C++ (lowered to PTX bynvcc), and it is compiled to SASS by our backend (docs/FRONTENDS.md). -
openassembler, a CLI that ties all of this together: compile a PTX, Python or CUDA C file to a.cubinplus a readable.sasswith our backend, verify it against a reference interpreter, and run compiled cubins against a ptxas reference on a local GPU, an SSH host, or a cloud GPU. The separategpu runcommand tests the probe corpus.
New Features
- Added float division, sqrtf, casts, integer register division/remainder.
- Added pointer-increment and 64-bit loop support.
- Added cross-warp shared-memory barrier modeling.
- Added repository compilation with output/cubin, output/sass, manifests, run, and cnr.
- Added Modal reproduction instructions and --spec support.
- Added NN/transformer baseline study and evidence report. (mainly for reproduction when aiming for academic usages)