Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion flash_attn/cute/flash_fwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,11 @@ def __call__(
self.num_Q_load_threads = self.num_threads
self.num_epilogue_threads = self.num_threads
# self.use_tma_O = self.arch >= 90 and mCuSeqlensQ is None
self.use_tma_O = self.arch >= Arch.sm_90
# SM120 (Blackwell GeForce / RTX PRO / DGX Spark) lacks the WGMMA-era TMA-store
# epilogue path used here; only sm_90..sm_119 use TMA for the O store. On sm_120
# tma_atom_O is None, so using it crashes in tma_partition with
# 'NoneType' object has no attribute '_trait'. (issue #2649)
self.use_tma_O = Arch.sm_90 <= self.arch < Arch.sm_120
self._setup_attributes()
SharedStorage = self._get_shared_storage_cls()
mQ, mK, mV, mO = [assume_tensor_aligned(t) for t in (mQ, mK, mV, mO)]
Expand Down