Samarth Narang·Apr 24Security for Agentic ML CompilersWhen Optimization Becomes an Attack SurfaceA response icon1A response icon1
Samarth Narang·Dec 9, 2025Triton on NPUs: What Changes When You Leave the GPU WorldA systems-oriented walkthrough of what changes when you bring Triton’s programming model from GPUs to NPUs: execution model, memory…
Samarth Narang·Dec 8, 2025Modeling Memory Hierarchies in MLIR: From DRAM to SRAMA practical walkthrough of how to represent global memory, local scratchpads, and tiles in MLIR using memren types, memory spaces, and…A response icon2A response icon2
Samarth Narang·Dec 1, 2025MLIR for People Who Already Know LLVM: A Guided TourIf you’re fluent in LLVM IR, MLIR feels both familiar and weird. This post builds a direct mapping: from modules, functions, and basic…
Samarth Narang·Nov 23, 2025Can I Beat Clang’s Auto-Vectorizer on Apple Silicon? A SAXPY Case StudyOn modern CPUs, the “slow” part of your code often isn’t the math — it’s how you feed the math units. Compilers try to fix this with…
Samarth Narang·Nov 21, 2025Quantization in MLIR: Types, Scales, and Where to Put the “q”This post walks through how to make quantization a first-class citizen in MLIR — from quantized types and quantize/dequantize ops to how…
Samarth Narang·Nov 16, 2025How GPUs Talk: A Practical Guide to Multi-GPU Training and CommunicationAn in-depth exploration of multi-GPU training techniques and the communication patterns that enable efficient distributed machine learning.
Samarth Narang·Nov 13, 2025Data Structure and Iterator Kung Fu in LLVMPractical patterns, zero-copy views, and safe mutation loops for faster LLVM passes.
Samarth Narang·Nov 9, 2025How Rewriting works in MLIR: From Greedy Patterns to Dialect ConversionsAn in-depth look at the rewriting mechanisms in MLIR and how they enable powerful optimizations.
Samarth Narang·Nov 7, 2025Demystifying GPU Terminology: A Compiler Engineer’s Field GuideGPUs aren’t mysterious — just picky. Most performance cliffs aren’t about the math; they’re about how warps step, how memory is fetched…