---
id: pr-flashinfer-2962
repo: flashinfer-ai/flashinfer
pr: 2962
title: 'Improved `simple` mamba SSU kernel '
author: ishovkun
date: '2026-05-13'
url: https://github.com/flashinfer-ai/flashinfer/pull/2962
source_category: upstream-code
architectures:
- sm100
tags:
- TMA
- benchmark
- benchmark_test
- compiler_runtime
- cuda kernel
- mxfp4
- sm100
techniques:
- async-copy
- vectorized-loads
hardware_features:
- blackwell
- fp4
- mxfp4
- tma
kernel_types:
- compiler
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 4568160cad50f234090326c45b02c8053ca21a3d
inclusion_reason: Mine shape sets, tolerance rules, warmup logic, and profile commands before mutating code.
changed_paths:
- benchmarks/bench_ssu_sweep_mtp.py
- benchmarks/bench_ssu_sweep_sol.py
- flashinfer/aot.py
- flashinfer/jit/mamba/selective_state_update.py
- flashinfer/mamba/selective_state_update.py
- include/flashinfer/mamba/common.cuh
- include/flashinfer/mamba/invoke_selective_state_update_mtp.cuh
- include/flashinfer/mamba/kernel_selective_state_update_mtp_horizontal.cuh
- include/flashinfer/mamba/kernel_selective_state_update_mtp_simple.cuh
- include/flashinfer/mamba/kernel_selective_state_update_mtp_vertical.cuh
- include/flashinfer/mamba/ssu_mtp_common.cuh
- tests/mamba/test_selective_state_update_mtp.py
- tests/mamba/test_selective_state_update_varlen.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-2962
head_ref_oid: 417665f16f72788848b60c5356090d2cc481db2d
---
# Improved `simple` mamba SSU kernel 

- Repository: `flashinfer-ai/flashinfer`
- PR: [2962](https://github.com/flashinfer-ai/flashinfer/pull/2962)
- Decision: `Mine shape sets, tolerance rules, warmup logic, and profile commands before mutating code.`
- Reason: Mine shape sets, tolerance rules, warmup logic, and profile commands before mutating code.

## Changed Paths

- `benchmarks/bench_ssu_sweep_mtp.py`
- `benchmarks/bench_ssu_sweep_sol.py`
- `flashinfer/aot.py`
- `flashinfer/jit/mamba/selective_state_update.py`
- `flashinfer/mamba/selective_state_update.py`
- `include/flashinfer/mamba/common.cuh`
- `include/flashinfer/mamba/invoke_selective_state_update_mtp.cuh`
- `include/flashinfer/mamba/kernel_selective_state_update_mtp_horizontal.cuh`
- `include/flashinfer/mamba/kernel_selective_state_update_mtp_simple.cuh`
- `include/flashinfer/mamba/kernel_selective_state_update_mtp_vertical.cuh`
- `include/flashinfer/mamba/ssu_mtp_common.cuh`
- `tests/mamba/test_selective_state_update_mtp.py`
- `tests/mamba/test_selective_state_update_varlen.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-2962`
