Skip to content

Fix CUDA 13.2 TMA typedef compatibility - #8

Merged
CyCle1024 merged 1 commit into
InternLM:mainfrom
ShilohYu:fix/cuda132-tma-typedef
Aug 7, 2026
Merged

Fix CUDA 13.2 TMA typedef compatibility#8
CyCle1024 merged 1 commit into
InternLM:mainfrom
ShilohYu:fix/cuda132-tma-typedef

Conversation

@ShilohYu

Copy link
Copy Markdown

Summary

Fix AdaptiveGEMM build compatibility with CUDA 13.2 by adding a fallback alias for PFN_cuTensorMapEncodeTiled.

CUDA 13.2 exposes the TMA driver entry point typedef as PFN_cuTensorMapEncodeTiled_v12000, while AdaptiveGEMM currently references the unversioned PFN_cuTensorMapEncodeTiled name. This causes JIT compilation failures in the CUDA 13.2 environment.

Change

  • Add a guarded alias:

    PFN_cuTensorMapEncodeTiled -> PFN_cuTensorMapEncodeTiled_v12000

  • Keep the alias behind #ifndef PFN_cuTensorMapEncodeTiled so existing CUDA versions that still expose the unversioned typedef are unchanged.

Validation

Validated in a torch 2.12.1 / CUDA 13.2 environment with XTuner float8 tests after rebuilding AdaptiveGEMM from this patch:

  • tests/engine/test_moe_train_engine_float8.py ep1 float8 cases: passed
  • ep8 float8 smoke case: passed

This fixes the CUDA 13.2 typedef compatibility issue without changing runtime kernel logic.

@CyCle1024
CyCle1024 merged commit c1a0650 into InternLM:main Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants