HTML5 Plyr

Analyzing Deepseek's "undefined" NVIDIA PTX optimizations (with benchmarks!)

LaurieWired · Feb 27, 2025 · 13:46

Two days ago, Deepseek surprised everyone with an "undefined-behavior" PTX optimization speeding up particular ML workloads on a Hopper NVIDIA GPU Kernel.

Let's reverse engineer the hack, implement it ourselves, and benchmark the speedup on an H100.

--

Link to my test code:
https://github.com/LaurieWired/BenchmarkCustomPTX

--

Timestamps

00:00 CUDA vs PTX vs SASS
02:12 Global Memory Target
03:27 Custom PTX Walkthrough
06:40 NVIDIA ISA Reference
07:42 Example Impelmentation
10:38 H100 Benchmark
11:46 SASS (Machine) Code

---

Follow LaurieWired on Social Media:
►https://linktr.ee/lauriewired

---
Comments (400 saved / 575) click to expand
Loading comments…
mirrors
video (MultiUp): https://multiup.io/download/f5e71b27ce832088c5aef7c20aa1ffd4/iEda8_Mvvo4.mp4
video (Download.gg): https://download.gg/file-18964615_9c1c6d48eb813e1f
video (FileMirage): https://filemirage.com/file/oje2fj1k
video (UploadHive): https://uploadhive.com/3f1zo2eeu0en
video (DailyUploads): https://dailyuploads.net/yseh0vglov88
video (Gofile): https://gofile.io/d/MWi3ayKC
video (VikingFile): https://vikingfile.com/f/3ET3mRvbew
thumbnail (qu.ax): https://qu.ax/CbBTX
thumbnail (beeimg): https://beeimg.com/images/l15581739524.jpg
thumbnail (img.fish): https://img.fish/xrkyhwia.jpg
thumbnail (pixhost): https://img3.pixhost.to/images/6834/796157633_ieda8_mvvo4.jpg
thumbnail (freeimage.host): https://iili.io/nUCTaVe.jpg