---
id: pr-flashinfer-1500
repo: flashinfer-ai/flashinfer
pr: 1500
title: 'fix: Replace cub Max/Min with cuda::maximum/minimum for cuda 13 compatibility'
author: yongwww
date: '2025-08-16'
url: https://github.com/flashinfer-ai/flashinfer/pull/1500
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: 44ba131e87434e5bba2c82779fdac06492b058af
inclusion_reason: kernel file changes
changed_paths:
- include/flashinfer/sampling.cuh
head_ref_oid: 913c63af27fce6371537c57c07868bc3471c2ed5
artifact_dir: evidence/pull-bundles/flashinfer/gh-1500
---
# fix: Replace cub Max/Min with cuda::maximum/minimum for cuda 13 compatibility

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

## Changed Paths

- `include/flashinfer/sampling.cuh`

## Evidence Bundle

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