Skip to content
KernelIndex
Search⌘K

gpt-5-2025-08-07 / cuda69e4ed

gpt-5-2025-08-07_cuda_69e4ed · gpt-5-2025-08-07 · cuda · Apache-2.0

Use it

Vendorable · source mirrored · Apache-2.0View source →

No package. Vendor the mirrored source: 36 lines, Apache-2.0, pinned at da91508.

main.cpp
curl "https://kernelindex.com/api/v1/implementations/flashinfer-gpt-5-2025-08-07-cuda-69e4ed?include=source"
interfacecuda
revisionda915083d4c7
symbolrun
pathmain.cpp
Compatibility
measured onNVIDIA B200
declared hardwareNVIDIA B200
architecturessm_100
dtypesfp16

Benchmark evidence

25 measurements across 1 GPU, fastest first.

Operation / workload
Hardware
Latency
Rank
Observed
GEMM n128 k2048fp16 · [2, 2048]
NVIDIA B200
93.4µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [5, 2048]
NVIDIA B200
94.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [4, 2048]
NVIDIA B200
94.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [1, 2048]
NVIDIA B200
94.7µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [8, 2048]
NVIDIA B200
96.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [17, 2048]
NVIDIA B200
96.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [6, 2048]
NVIDIA B200
96.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [16, 2048]
NVIDIA B200
96.4µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [25, 2048]
NVIDIA B200
98.5µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [34, 2048]
NVIDIA B200
99.6µs
#6 of 7
2025-10-16
Show all 25 measurements ›
GEMM n128 k2048fp16 · [32, 2048]
NVIDIA B200
100.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [63, 2048]
NVIDIA B200
101.5µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [64, 2048]
NVIDIA B200
102.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [93, 2048]
NVIDIA B200
107.2µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [172, 2048]
NVIDIA B200
107.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [128, 2048]
NVIDIA B200
109.2µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [289, 2048]
NVIDIA B200
111.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [492, 2048]
NVIDIA B200
114.4µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [8828, 2048]
NVIDIA B200
122.2µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [952, 2048]
NVIDIA B200
124.9µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [16294, 2048]
NVIDIA B200
147.0µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [14915, 2048]
NVIDIA B200
147.3µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [12251, 2048]
NVIDIA B200
148.0µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [12853, 2048]
NVIDIA B200
148.1µs
#6 of 7
2025-10-16
GEMM n128 k2048fp16 · [11006, 2048]
NVIDIA B200
148.7µs
#6 of 7
2025-10-16

Reproduction-ready · How evidence levels are derived →

Source and license

sourcehttps://huggingface.co/datasets/flashinfer-ai/flashinfer-trace
commitda915083d4c7c5e61aa3005e3d17ae488e0fc71c
revision digestsha256:f6607605a4e8fd48e74c3686e49f2137fe945e624b1349d14c2e421a10dec3cd
license declaredApache-2.0
license concludedApache-2.0
authorsgpt-5-2025-08-07
imported2026-08-20

Kernel source

main.cpp36 lines
#include "kernel.h"
#include <torch/extension.h>
#include <ATen/cuda/CUDAContext.h>

torch::Tensor run(torch::Tensor A, torch::Tensor B) {
  TORCH_CHECK(A.is_cuda(), "A must be a CUDA tensor");
  TORCH_CHECK(B.is_cuda(), "B must be a CUDA tensor");
  TORCH_CHECK(A.dtype() == torch::kHalf, "A must be float16 (half)");
  TORCH_CHECK(B.dtype() == torch::kHalf, "B must be float16 (half)");
  TORCH_CHECK(A.dim() == 2, "A must be 2D [M, K]");
  TORCH_CHECK(B.dim() == 2, "B must be 2D [N, K]");

  // Enforce expected shapes
  TORCH_CHECK(A.size(1) == K_CONST, "A.shape[1] must be 2048");
  TORCH_CHECK(B.size(0) == N_CONST && B.size(1) == K_CONST, "B.shape must be [128, 2048]");

  // Ensure contiguous
  auto A_c = A.contiguous();
  auto B_c = B.contiguous();

  // Allocate output C [M, 128] on same device/dtype as A
  auto options = A.options();
  auto M = A_c.size(0);
  auto C = torch::empty({M, static_cast<long>(N_CONST)}, options);

  // Launch kernel
  launch_gemm_n128_k2048(A_c, B_c, C);

  // Return result tensor
  return C;
}

PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
  m.def("run", &run, "gemm_n128_k2048 (A[M,2048], B[128,2048]) -> C[M,128]",
        py::arg("A"), py::arg("B"));
}
scrolls · 36 lines total

Source code from FlashInfer-Bench (flashinfer-ai/flashinfer-trace) · Apache-2.0

Best evidence level for this revision: reproducible

JSON