Skip to content

nvcc segfaults building flash-attn 2.x for SM 120 (RTX 50-series) #2361

Description

@bmdhodl

Summary

Building flash-attn from source with FLASH_ATTN_CUDA_ARCHS=120 crashes nvcc during compilation of backward kernels. This blocks all RTX 50-series (SM 12.0) users from using flash-attn 2.x.

Environment

  • GPU: RTX 5070 Ti (SM 12.0)
  • CUDA: 12.8 and 12.9 (both fail)
  • PyTorch: 2.9.1+cu128
  • WSL2 Ubuntu 22.04

Reproduction

FLASH_ATTN_CUDA_ARCHS=120 pip install flash-attn --no-build-isolation

nvcc segfaults on backward pass kernels (e.g. flash_bwd_hdim256_bf16_sm80.cu, flash_bwd_hdim128_bf16_causal_sm80.cu). Tested with both CUDA 12.8 and 12.9.

Prebuilt wheels

The v2.8.3 release only has wheels up to torch 2.8. The torch 2.8 wheel has ABI incompatibility with torch 2.9 (undefined symbol: _ZNK3c106SymInt6sym_neERKS0_). A torch 2.9 + cu128 wheel for sm_120 would unblock this.

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions