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
2 changes: 1 addition & 1 deletion csrc/sm100/prefill/sparse/fwd.cu
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ sparse_attn_fwd_kernel(__grid_constant__ const SparsePrefillParams params, __gri
float2 d = float2_fma(p[i], scale, neg_new_max);
d.x = exp2f(d.x);
d.y = exp2f(d.y);
li += d.x + d.y; // NOTE Theorically we can have use FFMA2 here but actually this is faster...
li += d.x + d.y; // NOTE Theoretically we can use FFMA2 here but actually this is faster...
s[i] = __float22bfloat162_rn(d);
}

Expand Down