---
id: pr-flashinfer-1582
repo: flashinfer-ai/flashinfer
pr: 1582
title: 'bugfix: Fix arg passing to TORCH_CHECK and TORCH_WARN macros'
author: amitz-nv
date: '2025-08-27'
url: https://github.com/flashinfer-ai/flashinfer/pull/1582
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
- kernel-fusion
- moe
techniques:
- kernel-fusion
hardware_features: []
kernel_types:
- gemm
- moe
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 0d8eac4332ba944adec6549cdd460cc7a3b1a753
inclusion_reason: kernel file changes
changed_paths:
- csrc/trtllm_batched_gemm_runner.cu
- csrc/trtllm_fused_moe_kernel_launcher.cu
- csrc/trtllm_fused_moe_routing_deepseek.cu
- csrc/trtllm_fused_moe_routing_llama4.cu
- csrc/trtllm_fused_moe_routing_renormalize.cu
- csrc/trtllm_fused_moe_runner.cu
head_ref_oid: 6817d124c3d943ef1d53f047c6532fd1672b7767
artifact_dir: evidence/pull-bundles/flashinfer/gh-1582
---
# bugfix: Fix arg passing to TORCH_CHECK and TORCH_WARN macros

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

## Changed Paths

- `csrc/trtllm_batched_gemm_runner.cu`
- `csrc/trtllm_fused_moe_kernel_launcher.cu`
- `csrc/trtllm_fused_moe_routing_deepseek.cu`
- `csrc/trtllm_fused_moe_routing_llama4.cu`
- `csrc/trtllm_fused_moe_routing_renormalize.cu`
- `csrc/trtllm_fused_moe_runner.cu`

## Evidence Bundle

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