siboehm/SGEMM_CUDA resource
Fast CUDA matrix multiplication from scratch observed · 2026-08-28
Health v2 · maintenance only
50/100
- Activity 40
- Release rhythm 35
- Longevity 99
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1390
- days_rel: n/a
- days_push: 365
- n_releases_24m: 0
Adoption not part of the score
1294 stars · 212 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An educational repository demonstrating step-by-step optimization of a CUDA SGEMM (matrix multiplication) kernel from a naive implementation to within ~94% of cuBLAS performance. It accompanies a detailed blog worklog explaining GPU performance concepts like memory coalescing, shared memory caching, and warptiling.
Use cases
- learn how to write fast CUDA matrix multiplication kernels
- understand GPU memory coalescing and shared memory optimization
- benchmark custom CUDA kernels against cuBLAS
- study GPU performance optimization for deep learning workloads
- learn CUDA kernel autotuning and warptiling techniques
When to choose
- you want to learn CUDA kernel optimization from first principles
- you need a worked example of optimizing matrix multiplication on NVIDIA GPUs
- you want to understand why cuBLAS is fast and what techniques it uses
When to avoid
- you need a production matrix multiplication library - use cuBLAS instead
- you need tensor core (TF32/BF16) support, which is not covered
- you work on non-NVIDIA GPUs, since the code is CUDA-specific
Facets
learning-resource · maturity stable
benchmarking math gpu-computing gpu-computing deep-learning performance tutorials cpp cuda sgemm matrix-multiplication kernel-optimization gpgpu educational algorithms linux
3 sources
- readme: https://github.com/siboehm/SGEMM_CUDA · fetched 2026-08-28 · 64040560d1a4
- homepage: https://siboehm.com/articles/22/CUDA-MMM · fetched 2026-08-29 · 96b1f2c3c69d
- site_page: https://siboehm.com/about · fetched 2026-08-29 · b4d5838889df
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| siboehm/SGEMM_CUDA | main | 50 |
For agents
markdown · JSON · MCP: product_card(name="siboehm/SGEMM_CUDA")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem