Skip to content

tomazzzzzx/rocm-kernel-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ROCm Kernel Suite

Collection of highly optimized ROCm HIP kernels for common GPU operations on AMD CDNA architecture.

Kernels Included

  • GEMM — Matrix multiplication with 95%+ TFLOPS utilization
  • Flash Attention — Memory-efficient attention for CDNA3
  • Softmax — Fused online softmax kernel
  • LayerNorm — Fused layer normalization + residual
  • RoPE — Rotary positional embeddings
  • TopK — Parallel top-k selection

Performance (MI300X 192GB HBM3)

Kernel TFLOPS Peak %
GEMM FP16 5.02 94.7%
Flash Attn 4.81 90.8%
Softmax 3.20 60.4%

Build

mkdir build && cd build
cmake -DROCM_PATH=/opt/rocm ..
make -j$(nproc)
make test

License: MIT

About

Collection of optimized ROCm HIP kernels for matrix operations on AMD GPUs

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors