Skip to content
Open
Changes from all commits
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
3 changes: 3 additions & 0 deletions transformer_engine/common/fused_attn/fused_attn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ NVTE_Fused_Attn_Backend nvte_get_fused_attn_backend(
qkv_format == NVTE_QKV_Format::NVTE_BHSD)) ||
((cudnn_runtime_version >= 92300 && (sm_arch_ >= 100 || (sm_arch_ >= 90 && !is_training))) &&
qkv_format == NVTE_QKV_Format::NVTE_THD && supported_ragged_offset_size &&
// cuDNN before 9.26 misindexes ragged FP8 Stats during sink-token backward.
(!is_training || softmax_type == NVTE_Softmax_Type::NVTE_VANILLA_SOFTMAX ||
cudnn_runtime_version >= 92600) &&
(attn_mask_type == NVTE_Mask_Type::NVTE_PADDING_MASK ||
attn_mask_type == NVTE_Mask_Type::NVTE_PADDING_CAUSAL_MASK ||
attn_mask_type == NVTE_Mask_Type::NVTE_PADDING_CAUSAL_BOTTOM_RIGHT_MASK))) &&
Expand Down
Loading