| { |
| "schema_version": 1, |
| "kernels": [ |
| { |
| "name": "matrix_mult", |
| "source": "kernels/prototypes/baseline/matmul/kernel.cu", |
| "description": "CUDA matrix multiplication kernel (compile-only baseline).", |
| "tags": ["cuda", "matmul"], |
| "compile_cmd": "{nvcc} -O3 -c {source} -o {build_dir}/{name}.o", |
| "run_cmd": "" |
| }, |
| { |
| "name": "tokenizer_kernel", |
| "source": "kernels/prototypes/experimental/tokenizer_matmul/kernel.cu", |
| "description": "Experimental tokenizer/matrix CUDA kernel file.", |
| "tags": ["cuda", "tokenizer", "experimental"], |
| "compile_cmd": "{nvcc} -O2 -c {source} -o {build_dir}/{name}.o", |
| "run_cmd": "" |
| }, |
| { |
| "name": "ada_gemm", |
| "source": "kernels/prototypes/ada/gemm/kernel.cu", |
| "description": "Ada-focused FP32 shared-memory GEMM prototype with standalone correctness and timing harness.", |
| "tags": ["cuda", "matmul", "ada", "sm89", "prototype"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -gencode arch=compute_89,code=sm_89 -gencode arch=compute_89,code=compute_89 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 1024 1024 1024 10 50" |
| }, |
| { |
| "name": "ada_gemm_k64_warp32_async", |
| "source": "kernels/prototypes/ada/gemm_k64_warp32_async/kernel.cu", |
| "description": "Ada FP32 GEMM winner with 64x64x64 tiles, 32x8 threads, and cp.async double-buffered shared-memory stages.", |
| "tags": ["cuda", "matmul", "ada", "sm89", "prototype", "fp32", "vectorized", "winner", "k64", "warp32", "async", "cpasync"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -gencode arch=compute_89,code=sm_89 -gencode arch=compute_89,code=compute_89 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 1024 1024 1024 10 50" |
| }, |
| { |
| "name": "ada_tensor_core_fp16", |
| "source": "kernels/prototypes/ada/tensor_core/kernel.cu", |
| "description": "Ada Tensor Core FP16 GEMM prototype.", |
| "tags": ["cuda", "matmul", "ada", "sm89", "prototype", "tensor-core", "fp16"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_ADA_TENSOR_CORE_USE_BF16=0 -gencode arch=compute_89,code=sm_89 -gencode arch=compute_89,code=compute_89 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 1024 1024 1024 10 50" |
| }, |
| { |
| "name": "ada_tensor_core_bf16", |
| "source": "kernels/prototypes/ada/tensor_core/kernel.cu", |
| "description": "Ada Tensor Core BF16 GEMM prototype.", |
| "tags": ["cuda", "matmul", "ada", "sm89", "prototype", "tensor-core", "bf16"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_ADA_TENSOR_CORE_USE_BF16=1 -gencode arch=compute_89,code=sm_89 -gencode arch=compute_89,code=compute_89 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 1024 1024 1024 10 50" |
| }, |
| { |
| "name": "hopper_tensor_core_fp16", |
| "source": "kernels/prototypes/hopper/tensor_core/kernel.cu", |
| "description": "Hopper Tensor Core FP16 GEMM prototype.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "fp16"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=0 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 1024 1024 1024 5 20" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16", |
| "source": "kernels/prototypes/hopper/tensor_core/kernel.cu", |
| "description": "Hopper Tensor Core BF16 GEMM prototype.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 1024 1024 1024 5 20" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_perf", |
| "source": "kernels/prototypes/hopper/tensor_core/kernel.cu", |
| "description": "Hopper BF16 baseline performance lane.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "perf"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_warp2n", |
| "source": "kernels/prototypes/hopper/tensor_core/kernel.cu", |
| "description": "Hopper BF16 performance lane with two N fragments per warp.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "perf", "warp2n"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -DPYC_HOPPER_TC_WARP_COL_TILES=2 -DPYC_HOPPER_TC_WARP_ROW_GROUPS=4 -DPYC_HOPPER_TC_WARP_COL_GROUPS=2 -DPYC_HOPPER_TC_SHARED_PAD_A=8 -DPYC_HOPPER_TC_SHARED_PAD_B=8 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_k32", |
| "source": "kernels/prototypes/hopper/tensor_core/kernel.cu", |
| "description": "Hopper BF16 performance lane with 32-wide K staging.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "perf", "k32"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -DPYC_HOPPER_TC_TILE_K=32 -DPYC_HOPPER_TC_SHARED_PAD_A=8 -DPYC_HOPPER_TC_SHARED_PAD_B=8 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_warp2n_k32", |
| "source": "kernels/prototypes/hopper/tensor_core/kernel.cu", |
| "description": "Hopper BF16 performance lane combining warp2n and 32-wide K staging.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "perf", "warp2n", "k32"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -DPYC_HOPPER_TC_WARP_COL_TILES=2 -DPYC_HOPPER_TC_WARP_ROW_GROUPS=4 -DPYC_HOPPER_TC_WARP_COL_GROUPS=2 -DPYC_HOPPER_TC_TILE_K=32 -DPYC_HOPPER_TC_SHARED_PAD_A=8 -DPYC_HOPPER_TC_SHARED_PAD_B=8 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_cublaslt_bf16", |
| "source": "kernels/prototypes/hopper/cublaslt_bf16/kernel.cu", |
| "description": "Hopper cuBLASLt BF16 GEMM control lane.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "cublaslt", "bf16", "control"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -lcublasLt -lcublas -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_cublaslt_bf16_check", |
| "source": "kernels/prototypes/hopper/cublaslt_bf16/kernel.cu", |
| "description": "Smaller Hopper cuBLASLt BF16 correctness lane.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "cublaslt", "bf16", "correctness"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -lcublasLt -lcublas -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 512 512 512 2 10 0" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_async", |
| "source": "kernels/prototypes/hopper/tensor_core_async/kernel.cu", |
| "description": "Hopper BF16 async WMMA lane with double-buffered staging.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "async", "cpasync"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_async_wide", |
| "source": "kernels/prototypes/hopper/tensor_core_async/kernel.cu", |
| "description": "Hopper BF16 async WMMA lane widened to a 64x128 CTA.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "async", "wide"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -DPYC_HOPPER_TC_WARP_COL_GROUPS=4 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_async_wide_k64", |
| "source": "kernels/prototypes/hopper/tensor_core_async/kernel.cu", |
| "description": "Hopper BF16 async WMMA wide lane with K=64 staging.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "async", "wide", "k64"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -DPYC_HOPPER_TC_WARP_COL_GROUPS=4 -DPYC_HOPPER_TC_TILE_K=64 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_async_square", |
| "source": "kernels/prototypes/hopper/tensor_core_async/kernel.cu", |
| "description": "Hopper BF16 async WMMA lane widened to a 128x128 CTA.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "async", "square"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -DPYC_HOPPER_TC_WARP_ROW_GROUPS=4 -DPYC_HOPPER_TC_WARP_COL_GROUPS=4 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| }, |
| { |
| "name": "hopper_tensor_core_bf16_async_square_k64", |
| "source": "kernels/prototypes/hopper/tensor_core_async/kernel.cu", |
| "description": "Hopper BF16 async WMMA square lane with K=64 staging.", |
| "tags": ["cuda", "matmul", "hopper", "sm90", "prototype", "tensor-core", "bf16", "async", "square", "k64"], |
| "compile_cmd": "{nvcc} -O3 -std=c++17 -lineinfo -DPYC_HOPPER_TENSOR_CORE_USE_BF16=1 -DPYC_HOPPER_TC_WARP_ROW_GROUPS=4 -DPYC_HOPPER_TC_WARP_COL_GROUPS=4 -DPYC_HOPPER_TC_TILE_K=64 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 {source} -o {build_dir}/{name}", |
| "run_cmd": "{build_dir}/{name} 4096 4096 4096 3 30 1" |
| } |
| ] |
| } |
|
|