Skip to content

[release/v0.1.12] Remove C10_HIP_KERNEL_LAUNCH_CHECK (Lingpeng's preferred fix)#2846

Merged
valarLip merged 1 commit intorelease/v0.1.12from
pensun/rm-c10-hip-kernel-launch-check
Apr 22, 2026
Merged

[release/v0.1.12] Remove C10_HIP_KERNEL_LAUNCH_CHECK (Lingpeng's preferred fix)#2846
valarLip merged 1 commit intorelease/v0.1.12from
pensun/rm-c10-hip-kernel-launch-check

Conversation

@sunway513
Copy link
Copy Markdown
Collaborator

Summary

Remove the C10_HIP_KERNEL_LAUNCH_CHECK(); call from csrc/kernels/gated_rmsnorm_quant_kernels.cu (the only occurrence across all of csrc/). This is Lingpeng's preferred fix per Teams discussion 2026-04-21 and supersedes the include-based approach in #2842.

Background

Why removal is safe

C10_HIP_KERNEL_LAUNCH_CHECK is a thin error-reporting wrapper around hipGetLastError(). The kernel launches themselves (<<<grid, block, 0, stream>>>) are unaffected. Dropping the post-launch check removes the build-environment dependency on PyTorch's HIPException header and makes the file robust across PyTorch versions.

The macro is used in exactly one place across csrc/ (verified). On release/v0.1.12 HEAD (04d4009) the include from #2842 is not yet present, so no include needs to be removed.

Relationship to other PRs / issues

CI

Adding labels for vLLM, ATOM, SGLang, and Triton MI355 lanes per release/v0.1.12 validation policy.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants