---
title: "LeetCUDA Hits 11.5k Stars Teaching GPU Kernel Writing the Hard Way"
subtitle: "LeetCUDA is an open-source CUDA learning repo with 200+ kernels, PyTorch bindings, and curated GPU programming blogs that has grown to 11.5k stars"
url: "https://alphasignal.ai/news/leetcuda-hits-11-5k-stars-teaching-gpu-kernel-writing-the-hard-way"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-07-15T11:31:57.000Z"
updated: "2026-07-15T13:12:52.724Z"
type: "Repo"
topics:
  - "Gpus"
  - "Open Source"
subtopics:
  - "Kernels"
  - "Quantization"
upvotes: 79
source_url: "https://github.com/xlite-dev/LeetCUDA"
comments: 0
truncated: true
---

# LeetCUDA Hits 11.5k Stars Teaching GPU Kernel Writing the Hard Way

> LeetCUDA is an open-source CUDA learning repo with 200+ kernels, PyTorch bindings, and curated GPU programming blogs that has grown to 11.5k stars

[LeetCUDA](https://github.com/xlite-dev/LeetCUDA) is an open-source CUDA learning resource built by **DefTruth** (xlite-dev) that has quietly become one of the most-starred GPU programming repositories on GitHub, crossing 11.5k stars and 1.2k forks. The premise is simple but rare: instead of a slide deck or a textbook, it gives you runnable, well-commented CUDA kernels that go from trivial element-wise ops all the way to hand-rolled FlashAttention-2 using raw MMA PTX assembly, each wired up to PyTorch via Python bindings so you can benchmark them immediately.

## The gap it fills

The deep-learning stack is deeper than ever: Python on top, C++/CUDA at the bottom, and a large gap in between where most engineers get lost. LeetCUDA is a self-contained repo that tries to shrink that gap. It is not another "CUDA-101" slideshow , it is a living notebook that couples 200+ hand-written kernels with PyTorch integration, end-to-end benchmarks, and a curated blog roll that explains why every line of code looks the way it does.

The name is intentional. It borrows the LeetCode framing , graded difficulty, one problem at a time , and applies it to GPU kernel writing. The kernels guide you through a step-by-step progression, ranging from easy to very challenging topics, with the workflow for each topic being: custom CUDA kernel implementation, PyTorch Python bindings, then run tests.

## What's inside

The difficulty ladder spans five tiers:

* **Easy / Medium:** Element-wise ops, matrix transpose, warp/block reduce, NMS, ReLU, GELU, Swish, LayerNorm, RMSNorm, online softmax, dot product, and embedding , covering FP32, FP16, BF16, and FP8.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [GitHub - xlite-dev/LeetCUDA](https://github.com/xlite-dev/LeetCUDA)
- [LeetCUDA: A One-Stop Lab for CUDA Kernels — BrightCoding](https://www.blog.brightcoding.dev/2025/10/01/leetcuda-a-one-stop-lab-for-cuda-kernels-pytorch-bindings-llm-blogs-and-tensor-core-benchmarks)
- [xlite-dev/ffpa-attn — GitHub](https://github.com/xlite-dev/ffpa-attn)
- [LeetCUDA CONTRIBUTE.md](https://github.com/xlite-dev/LeetCUDA/blob/main/CONTRIBUTE.md)
