Skip to content

calvin0327/cuda-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Start

Build Extension

python setup.py build_ext --inplace

Run Flash Attention Benchmark

uv run -m benchmark.flash_attn

The benchmark results will be saved to ./benchmark/ directory, including:

Flash Attention Benchmark Results

Benchmark Configuration:

  • Batch size (B): 4
  • Number of heads (H): 32
  • Head dimension (D): 64
  • Causal: False

Performance Results (TFLOPS):

Flash Attention Performance

Benchmark tested on A10 GPU

Compile CUTE Kernel

CUTLASS version: v4.2.1

mkdir build && cd build
cmake ..
make

Debug Triton Kernel

.venv/bin/activate
TRITON_INTERPRET=1 python -m pdb csrc/triton/matmul.py

About

A personal operator practice project encompassing CUDA, CUTE, and Triton operators. It focuses not only on the operators themselves but also incorporates engineering best practices.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages