Views
No views yet
pip install kernels1import kernels
2kernels.install("kernels-community/DeepGEMM")1import deep_gemm
2
3# FP8 GEMM: D = A @ B.T
4deep_gemm.fp8_gemm_nt((a_fp8, sfa), (b_fp8, sfb), d)
5
6# BF16 GEMM: D = A @ B.T
7deep_gemm.bf16_gemm_nt(a_bf16, b_bf16, d)
8
9# cuBLASLt GEMM
10deep_gemm.cublaslt_gemm_nt(a, b, d).cuh files in include/deep_gemm/) are compiled at runtime using
NVCC or NVRTC. First invocations may be slower due to compilation; results are
cached in ~/.deep_gemm/ for subsequent calls.cute/, cutlass/) at
runtime. The package will automatically search for CUTLASS in these locations:DG_CUTLASS_INCLUDE environment variable (direct path to include dir)CUTLASS_HOME environment variable ($CUTLASS_HOME/include)include/ directoryCUDA_HOME/include (some CUDA 12.8+ installs bundle cute/)nvidia-cutlass Python package1export CUTLASS_HOME=/path/to/cutlass
2# or
3export DG_CUTLASS_INCLUDE=/path/to/cutlass/include