SGEMM Tutorial
Learn the kernel optimization ladder: naive, tiling, bank-conflict cleanup, double buffering, vectorization, and Tensor Core variants.
A repository-specific reading map from SGEMM fundamentals to reusable inference components.
This page is the fastest orientation pass for readers who want more than a repo brochure.
Treat the repository as three connected views of the same work:
Recommended first pass
If you are new to this repo, read Getting Started, then skim 01-SGEMM Tutorial, and only then come back to the broader architecture whitepaper.
| Your goal | Start here | Why this is the right entry | Read next |
|---|---|---|---|
| Understand CUDA performance basics | 01-SGEMM Tutorial | It shows the optimization ladder in the smallest possible teaching surface. | Benchmarks → SGEMM whitepaper |
| Build reusable CUDA operators | 02-TensorCraft Core | It turns isolated kernels into reusable abstractions, RAII-based resource handling, and library boundaries. | Architecture → TensorCraft design |
| Study advanced kernel techniques | 03-HPC Advanced | It is where register tiling, FlashAttention, CUTLASS, and newer CUDA features are discussed in repo context. | Advanced showcase → Benchmarks |
| Understand end-to-end deployment shape | 04-Inference Engine | It shows how optimized kernels feed stream scheduling, memory pools, and inference-oriented execution. | Inference engine design → Roadmap |
Click a module to see details
The repo is intentionally layered.
02-tensorcraft-core, 03-hpc-advanced, 04-inference-engine, common, and examples.01-sgemm-tutorial stays intentionally separate behind its own Makefile.| Documentation area | Best used for | Main question it answers |
|---|---|---|
| Module docs | Close reading of code and concepts | “What does this directory teach, and where should I open the code first?” |
| Whitepapers | Cross-module reasoning | “Why is the repo structured this way, and how do the modules feed one another?” |
| Benchmarks | Evidence and limits | “What performance story is the repo claiming, and how should I interpret it?” |
| Roadmap | Sequencing your study | “What should I read next for my current goal and experience level?” |