---
id: pr-flashinfer-2058
repo: flashinfer-ai/flashinfer
pr: 2058
title: 'perf: Optimize helper max/minmax function in sampling.cuh'
author: bkryu
date: '2025-11-07'
url: https://github.com/flashinfer-ai/flashinfer/pull/2058
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
techniques: []
hardware_features: []
kernel_types: []
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: f588d96af1d27bd8714b63e40ccc2955d92a5593
inclusion_reason: kernel file changes
changed_paths:
- include/flashinfer/sampling.cuh
head_ref_oid: 69f5e5f6932321030430e3e80b818d37e871ebf9
artifact_dir: evidence/pull-bundles/flashinfer/gh-2058
---
# perf: Optimize helper max/minmax function in sampling.cuh

- Repository: `flashinfer-ai/flashinfer`
- PR: [2058](https://github.com/flashinfer-ai/flashinfer/pull/2058)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `include/flashinfer/sampling.cuh`

## Evidence Bundle

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