Studying NVIDIA SASS codegen with agents: PTX-to-SASS compilation is full of surprises

austinvhuang · x · 2026-11-24

Developer gaunernst shared a weekend analysis of NVIDIA GPU SASS codegen, made tractable with AI agents: PTX is mostly documented, but SASS is what GPUs actually run, and the PTX→SASS lowering is often unexpected.

He published a PTX-to-SASS comparison of cp.async / LDGSTS (the attached image shows how LDGSTS.E.BYPASS.128 compiles under different src-size and predicate cases), arguing that understanding SASS codegen informs better kernel writing — i.e., massaging the compiler. More instruction analyses to follow.

Original post →

More from Infra

Infra channel →