---
id: pr-sglang-5150
repo: sgl-project/sglang
pr: 5150
title: Add optimized native kernels in sgl-kernel
author: mingfeima
date: '2025-04-08'
url: https://github.com/sgl-project/sglang/pull/5150
source_category: upstream-code
architectures:
- sm100
tags:
- decode
- gemm
- moe
techniques: []
hardware_features: []
kernel_types:
- decode
- gemm
- moe
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: a73c4df4387a30bd8cac94f828995bcf3bc2e615
inclusion_reason: kernel file changes
changed_paths:
- sgl-kernel/csrc/cpu/activation.cpp
- sgl-kernel/csrc/cpu/bmm.cpp
- sgl-kernel/csrc/cpu/common.h
- sgl-kernel/csrc/cpu/decode.cpp
- sgl-kernel/csrc/cpu/extend.cpp
- sgl-kernel/csrc/cpu/gemm.cpp
- sgl-kernel/csrc/cpu/gemm.h
- sgl-kernel/csrc/cpu/gemm_int8.cpp
- sgl-kernel/csrc/cpu/interface.cpp
- sgl-kernel/csrc/cpu/moe.cpp
- sgl-kernel/csrc/cpu/moe_int8.cpp
- sgl-kernel/csrc/cpu/norm.cpp
- sgl-kernel/csrc/cpu/qkv_proj.cpp
- sgl-kernel/csrc/cpu/rope.cpp
- sgl-kernel/csrc/cpu/shm.cpp
- sgl-kernel/csrc/cpu/shm.h
- sgl-kernel/csrc/cpu/topk.cpp
- sgl-kernel/csrc/cpu/torch_extension_cpu.cpp
- sgl-kernel/csrc/cpu/vec.h
- sgl-kernel/setup_cpu.py
head_ref_oid: 80e6fe2c810b5a5ad676f61dd5fccc60f0bb9c73
artifact_dir: evidence/pull-bundles/sglang/gh-5150
---
# Add optimized native kernels in sgl-kernel

- Repository: `sgl-project/sglang`
- PR: [5150](https://github.com/sgl-project/sglang/pull/5150)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `sgl-kernel/csrc/cpu/activation.cpp`
- `sgl-kernel/csrc/cpu/bmm.cpp`
- `sgl-kernel/csrc/cpu/common.h`
- `sgl-kernel/csrc/cpu/decode.cpp`
- `sgl-kernel/csrc/cpu/extend.cpp`
- `sgl-kernel/csrc/cpu/gemm.cpp`
- `sgl-kernel/csrc/cpu/gemm.h`
- `sgl-kernel/csrc/cpu/gemm_int8.cpp`
- `sgl-kernel/csrc/cpu/interface.cpp`
- `sgl-kernel/csrc/cpu/moe.cpp`
- `sgl-kernel/csrc/cpu/moe_int8.cpp`
- `sgl-kernel/csrc/cpu/norm.cpp`
- `sgl-kernel/csrc/cpu/qkv_proj.cpp`
- `sgl-kernel/csrc/cpu/rope.cpp`
- `sgl-kernel/csrc/cpu/shm.cpp`
- `sgl-kernel/csrc/cpu/shm.h`
- `sgl-kernel/csrc/cpu/topk.cpp`
- `sgl-kernel/csrc/cpu/torch_extension_cpu.cpp`
- `sgl-kernel/csrc/cpu/vec.h`
- `sgl-kernel/setup_cpu.py`

## Evidence Bundle

`evidence/pull-bundles/sglang/gh-5150`
