Skip to content

[bugfix]: require CUDA 12.9 for SM103a VSA builds - #1814

Open
SolitaryThinker wants to merge 1 commit into
hao-ai-lab:mainfrom
SolitaryThinker:agent-follow_pr1812_cuda_guard
Open

[bugfix]: require CUDA 12.9 for SM103a VSA builds#1814
SolitaryThinker wants to merge 1 commit into
hao-ai-lab:mainfrom
SolitaryThinker:agent-follow_pr1812_cuda_guard

Conversation

@SolitaryThinker

Copy link
Copy Markdown
Collaborator

Summary

This follow-up to #1812 preserves CUDA 12.8 support for GB200 builds.

CUDA 12.8 supports SM100a, while CUDA 12.9 introduced the SM103a compiler target. The previous CMake configuration added compute_103a whenever native VSA was enabled, which caused CUDA 12.8 builds targeting SM100a to fail.

Changes

  • Always build the SM100a VSA cubin when native VSA is enabled.
  • Build the SM103a cubin only with CUDA Toolkit 12.9 or newer.
  • Expose whether the extension contains SM103a code and restrict runtime dispatch accordingly.
  • Add packaging regression coverage for the CUDA version guard and runtime capability flag.

Testing

  • python -m pytest -q tests/test_fasth3_packaging.py — 3 passed.
  • pre-commit run --files fastvideo-kernel/CMakeLists.txt fastvideo-kernel/csrc/common_extension.cpp fastvideo-kernel/python/fastvideo_kernel/block_sparse_attn_sm100a.py tests/test_fasth3_packaging.py — passed for all applicable hooks.

A full CUDA build was not run because this host does not provide a C++ compiler or nvcc. CI should validate the CUDA 12.8 and CUDA 13 build configurations.

Impact

CUDA 13 release wheels continue to include SM100a and SM103a cubins. CUDA 12.8 builds retain SM100a support. Training and gradient-enabled VSA paths continue to use Triton and are unchanged.

Keep CUDA 12.8 GB200 builds from receiving the unsupported compute_103a
gencode. Export whether the extension actually contains an SM103a image so
runtime dispatch falls back safely when a CUDA 12.8 build is moved to B300.
@mergify mergify Bot added type: bugfix Bug fix scope: kernel CUDA kernels, fastvideo-kernel labels Sep 4, 2026
@mergify

mergify Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 1 of 1 protections blocking · waiting on 👀 reviews and 🤖 CI

Protection Waiting on
🔴 PR merge requirements 👀 reviews and 🤖 CI

🔴 PR merge requirements

Waiting for

  • #approved-reviews-by>=1
  • check-success=full-suite-passed
This rule is failing.
  • #approved-reviews-by>=1
  • check-success=full-suite-passed
  • check-success=fastcheck-passed
  • check-success~=pre-commit
  • title~=(?i)^\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model|skill|skills|infra)\]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: kernel CUDA kernels, fastvideo-kernel type: bugfix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant