gpt-o3_cuda_696722
gpt-o3 · cuda · Apache-2.0
Use it
Vendorable · source mirrored · Apache-2.0View source →
No package. Vendor the mirrored source: 42 lines, Apache-2.0, pinned at da91508.
main.cpp
curl "https://kernelindex.com/api/v1/implementations/flashinfer-gpt-o3-cuda-696722?include=source"interfacecuda
revisionda915083d4c7
symbolrun
pathmain.cpp
Compatibility
measured onNVIDIA B200
declared hardwareNVIDIA B200
architecturessm_100
dtypesfp16
Benchmark evidence
43 measurements across 1 GPU, fastest first.
Operation / workload
Hardware
Latency
Rank
Observed
Show all 43 measurements ›Showing all 43 measurements ⌄
Reproduction-ready · How evidence levels are derived →
Source and license
sourcehttps://huggingface.co/datasets/flashinfer-ai/flashinfer-trace
commitda915083d4c7c5e61aa3005e3d17ae488e0fc71c
revision digestsha256:24ed978b12ffe5524f0ca327a13034ccba5a78b2df235f90e88a8a6d4227b0b6
license declaredApache-2.0
license concludedApache-2.0
authorsgpt-o3
imported2026-08-20
Kernel source
main.cpp42 lines
/*
* main.cpp
*
* Thin C++ front-end for the GEMM launcher so that the module can be used
* directly from Python. The exposed `run` function mirrors the reference
* implementation:
*
* C = torch.matmul(A , B.T)
*/
#include "kernel.h"
#include <torch/extension.h>
/* --------------------------------------------------------------------- */
/* Public API exposed to Python */
/* --------------------------------------------------------------------- */
torch::Tensor run(torch::Tensor A, torch::Tensor B,
py::kwargs /*unused*/ = {})
{
TORCH_CHECK(A.device().is_cuda() && B.device().is_cuda(),
"Input tensors must be on CUDA device");
const auto M = A.size(0);
auto C = torch::empty({M, 28672},
torch::dtype(at::kHalf).device(A.device()));
/* Perform the GEMM on the current CUDA stream */
launch_gemm_n_28672_k_4096(A, B, C);
return C;
}
/* --------------------------------------------------------------------- */
/* PyBind11 module */
/* --------------------------------------------------------------------- */
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
m.def("run", &run,
"GEMM: C[M,28672] = A[M,4096] * B[28672,4096]^T (FP16)",
py::arg("A"),
py::arg("B"));
}scrolls · 42 lines total
Source code from FlashInfer-Bench (flashinfer-ai/flashinfer-trace) · Apache-2.0
Best evidence level for this revision: reproducible
JSON