Repository navigation
Conversation
…rm_quant_kernels.cu Cherry-pick of #2839 (by @ChuanLi1101) onto release/v0.1.12 to unblock PREBUILD_KERNELS=1 builds in vLLM ml-ci-internal base image. Fixes #2837. See PR #2839 for full root-cause analysis.
…nels.cu Per Lingpeng's review on PR #2839/#2842 — the macro is defined only by recent PyTorch versions' c10/hip/HIPException.h. Building AITER from source against older PyTorch releases (e.g. vLLM ml-ci-internal lane, issue #2837) fails to find the macro even when the include is present. The macro is used in exactly one place across all of csrc/. It's an error-reporting wrapper around hipGetLastError() — the kernel launches themselves are unaffected. Removing it eliminates the build-env dependency and is robust across PyTorch versions. Supersedes #2842 (cherry-pick of #2839's include-based fix). Fixes #2837.
|
Heads up — opened #2846 as the supersede for this PR, per Lingpeng's preferred approach (remove the macro outright rather than rely on Context: Greg confirmed today (2026-04-21) that even with this PR's include applied, his build against an older PyTorch still fails to find Leaving this PR open for Peng's call on whether to close. |
|
Superseded by #2846 (Lingpeng's macro-removal fix), which is robust to PyTorch versions that don't define Closing in favor of #2846. Issue #2837 stays open until #2846 merges and a v0.1.12.post2 tag ships. |
…nels.cu (#2846) Per Lingpeng's review on PR #2839/#2842 — the macro is defined only by recent PyTorch versions' c10/hip/HIPException.h. Building AITER from source against older PyTorch releases (e.g. vLLM ml-ci-internal lane, issue #2837) fails to find the macro even when the include is present. The macro is used in exactly one place across all of csrc/. It's an error-reporting wrapper around hipGetLastError() — the kernel launches themselves are unaffected. Removing it eliminates the build-env dependency and is robust across PyTorch versions. Supersedes #2842 (cherry-pick of #2839's include-based fix). Fixes #2837.
Cherry-picks #2839 (by @ChuanLi1101) onto
release/v0.1.12to preparev0.1.12.post2.Why
Building v0.1.12.post1 from source with
PREBUILD_KERNELS=1fails in vLLM'sml-ci-internalbase image:AITER CI doesn't catch this because
rocm/pytorch:latesthappens to pull<c10/hip/HIPException.h>transitively through other includes in this file. vLLM ml-ci-internal's base image doesn't, so the build fails. Per Richard's audit, this macro is referenced in exactly one.cufile across all ofcsrc/, so a single explicit include fully resolves it.Fixes #2837. See #2839 for the full root-cause analysis from @ChuanLi1101.
Diff
One line added after the existing
#include <ATen/...>block:#include "dispatch_utils.h" #include <ATen/hip/impl/HIPGuardImplMasqueradingAsCUDA.h> +#include <c10/hip/HIPException.h> namespace aiter {CI
Adding
ci:vllm,ci:atom,ci:sglang,ci:triton-355to validate downstream impact before merge — this is thev0.1.12.post2candidate so we want full coverage.Follow-up
Lingpeng raised the option of removing
C10_HIP_KERNEL_LAUNCH_CHECKentirely instead of adding the header. We're going with the explicit include here to unblock @gshtras / vLLM 0.20 train today; macro removal will be tracked as a separate audit (no othercsrc/files use it).