The sm_90 realization of an SM86-shaped program: what an H100 runs for it.
It is word for word. Hopper decodes almost every word Accelerator.SM86's
encoder emits exactly as Ampere does (the header, the register files, the
ALU, conversion, tensor-core, shared-memory, shuffle, barrier and
asynchronous-group forms), so each such instruction keeps its SM86 word.
Evidence: every distinct word of the GPT-2 trainer and initialization
programs, nvdisasm -b SM86 against -b SM90 (CUDA 12.4, 2026-10-10,
comparisons/h100/README.md), and one instance of each SM86 constructor
(CUDA 12.9, reference/oracles/nvidia-sm90-ptxas/sm86-words/). The
forms whose bits must change are re-encoded from the typed instruction by
Accelerator.SM90.InstructionEncoding:
* LDG / LDG.128 / STG / STG.64 / STG.128 / LDGSTS take the raw global
form, [Ra.64+URZ+offset], with no memory descriptor;
* BRA's displacement moves to Hopper's split field;
* RED.ADD.F32 takes the raw form too, REDG [Ra.64+URZ+offset]: its
descriptor flag is bit 71 (bit 76 is its operand type), measured
against ptxas and nvdisasm (reference/oracles/nvidia-sm90-ptxas/
global-branch/red.sass) and run on the H100 (2026-10-19, the
speedrun backward's value-embedding probe).
Because nothing is inserted or removed, the program keeps its length:
every launch placement, every region extent and every branch displacement
derived from its SM86 encoding holds for its sm_90 code unchanged. And
because each word is a function of its own instruction, the backend can
apply this lowering after it has allocated a region's registers
(NvidiaDeviceAllocatedProgramRegion), which a whole-program lowering
computed from the program as written could not.
44def sm90Architecture : Nat = 0x90The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.