This is a series of GPU optimization topics. Here we will introduce how to optimize the CUDA kernel in detail. I will introduce several basic kernel optimizations, including: elementwise, reduce, sgemv, sgemm, etc. The performance of these kernels is basically at or near the theoretical limit.
☆1,244Jul 29, 2023Updated 2 years ago
Alternatives and similar repositories for How_to_optimize_in_GPU
Users that are interested in How_to_optimize_in_GPU are comparing it to the libraries listed below
Sorting:
- A simple high performance CUDA GEMM implementation.☆426Jan 4, 2024Updated 2 years ago
- how to optimize some algorithm in cuda.☆2,825Feb 15, 2026Updated 2 weeks ago
- Optimizing SGEMM kernel functions on NVIDIA GPUs to a close-to-cuBLAS performance.☆407Jan 2, 2025Updated last year
- Yinghan's Code Sample☆365Jul 25, 2022Updated 3 years ago
- row-major matmul optimization☆707Feb 24, 2026Updated last week
- 📚LeetCUDA: Modern CUDA Learn Notes with PyTorch for Beginners🐑, 200+ CUDA Kernels, Tensor Cores, HGEMM, FA-2 MMA.🎉☆9,755Feb 25, 2026Updated last week
- A Easy-to-understand TensorOp Matmul Tutorial☆410Feb 11, 2026Updated 3 weeks ago
- Several optimization methods of half-precision general matrix multiplication (HGEMM) using tensor core with WMMA API and MMA PTX instruct…☆526Sep 8, 2024Updated last year
- Examples of CUDA implementations by Cutlass CuTe☆269Jul 1, 2025Updated 8 months ago
- ☆2,698Jan 16, 2024Updated 2 years ago
- Xiao's CUDA Optimization Guide [NO LONGER ADDING NEW CONTENT]☆323Nov 8, 2022Updated 3 years ago
- compiler learning resources collect.☆2,684Mar 19, 2025Updated 11 months ago
- flash attention tutorial written in python, triton, cuda, cutlass☆488Jan 20, 2026Updated last month
- CUDA Templates and Python DSLs for High-Performance Linear Algebra☆9,348Updated this week
- ☆1,992Jul 29, 2023Updated 2 years ago
- Step-by-step optimization of CUDA SGEMM☆433Mar 30, 2022Updated 3 years ago
- Material for gpu-mode lectures☆5,800Feb 1, 2026Updated last month
- ☆159Dec 26, 2024Updated last year
- FlashInfer: Kernel Library for LLM Serving☆5,057Updated this week
- 📚A curated list of Awesome LLM/VLM Inference Papers with Codes: Flash-Attention, Paged-Attention, WINT8/4, Parallelism, etc.🎉☆5,022Feb 25, 2026Updated last week
- ☆116May 16, 2025Updated 9 months ago
- Flash Attention in ~100 lines of CUDA (forward pass only)☆1,084Dec 30, 2024Updated last year
- ☆152Jan 9, 2025Updated last year
- An unofficial cuda assembler, for all generations of SASS, hopefully :)☆572Apr 20, 2023Updated 2 years ago
- A CUDA tutorial to make people learn CUDA program from 0☆269Jul 9, 2024Updated last year
- ☆168Feb 5, 2026Updated last month
- ☆147Mar 18, 2024Updated last year
- MegCC是一个运行时超轻量,高效,移植简单的深 度学习模型编译器☆486Oct 23, 2024Updated last year
- ☆120Apr 11, 2024Updated last year
- CUDA 算子手撕与面试指南☆852Aug 23, 2025Updated 6 months ago
- A standalone GEMM kernel for fp16 activation and quantized weight, extracted from FasterTransformer☆96Feb 20, 2026Updated last week
- A list of awesome compiler projects and papers for tensor computation and deep learning.☆2,733Oct 19, 2024Updated last year
- learning how CUDA works☆377Mar 3, 2025Updated last year
- ☆262Jul 11, 2024Updated last year
- Distributed Compiler based on Triton for Parallel Systems☆1,371Feb 13, 2026Updated 2 weeks ago
- We invite you to visit and follow our new repository at https://github.com/microsoft/TileFusion. TiledCUDA is a highly efficient kernel …☆194Jan 28, 2025Updated last year
- Domain-specific language designed to streamline the development of high-performance GPU/CPU/Accelerators kernels☆5,284Updated this week
- 使用 cutlass 仓库在 ada 架构上实现 fp8 的 flash attention☆79Aug 12, 2024Updated last year
- Implement Flash Attention using Cute.☆101Dec 17, 2024Updated last year