Skip to content

Commit

Permalink
Update fused_multihead_attention_v2.h
Browse files Browse the repository at this point in the history
fix missed unrollList condition
  • Loading branch information
byshiue authored Dec 8, 2022
1 parent 46e1f4a commit 20f6181
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5473,7 +5473,7 @@ class FusedMultiHeadAttentionXMMAKernelV2:
};
for (unsigned int i = 0u; i < sizeof(unrollList) / sizeof(unrollList[0]); ++i) {
if (mSM == unrollList[i].mSM && mDataType == unrollList[i].mDataType && params.s == unrollList[i].mS
&& params.b <= unrollList[i].mMaxBatch) {
&& params.d == unrollList[i].mD && params.b <= unrollList[i].mMaxBatch) {
forceUnroll = true;
break;
}
Expand Down

0 comments on commit 20f6181

Please sign in to comment.