pranjalssh/fast.cu

Fastest kernels written from scratch

What it solves

This project provides highly optimized GPU kernels written from scratch to maximize performance on modern NVIDIA hardware, specifically targeting matrix multiplication and sum reduction operations that are critical for AI workloads.

How it works

It implements custom CUDA kernels for specific hardware architectures (H100 and GB300). It focuses on maximizing TFLOPs and memory bandwidth, providing implementations for BF16 matrix multiplication on H100 and NVFP4 matrix multiplication on GB300, as well as a sum reduction kernel for H100.

Who it’s for

Developers and researchers specializing in GPU programming, CUDA optimization, and high-performance computing (HPC) for AI inference and training.

Highlights

  • High-performance BF16 matrix multiplication on H100 that outperforms cuBLAS in some benchmarks.
  • Support for NVFP4 matrix multiplication on GB300/B300 hardware using CUDA 13.1.
  • A sum reduction kernel for H100 that exceeds the performance of the cuBLAS/cub library.

Related

  • Project
  • Project
  • Project
  • Project
  • Project