Podcast summary

Deep Dive: HLSL, GPU Determinism & Compiler Lessons

CppCast episode artwork

CppCast

Podcast • 05/18/26 • 68 mins

Listen to the full episode

Hardware myths collapse; determinism beats cleverness

Performance and correctness folklore (e.g., which instruction is faster, whether compilers preserve math) breaks under real microarchitectures. GPU language design therefore hinges on explicit semantics, specification, and testing—not clever tricks.

Floating “precision control” is optimization-dependent

HLSL’s floating-point “precise” intent can fail in practice because compilers legally refactor, fuse, or eliminate sub-expressions differently per context. Deterministic-looking code may still produce different results.

GPU portability uses virtual ISAs, not guarantees

HLSL targets a virtual ISA and drivers lower it per hardware, but that layer doesn’t guarantee identical floating-point results across vendors. Certification-style conformance can ignore precision-sensitive functions, so portability requires epsilon/perceptual testing.