mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-15 18:42:06 +00:00
Fix the GetTileRangeAlongX() to align with the hstu masking definition when both causal=true and local=true
This commit is contained in:
@@ -61,9 +61,10 @@ struct HstuBlockMaskWithLocal
|
||||
}
|
||||
else
|
||||
{
|
||||
index_t x_end = i_y + YTile + max_attn_len;
|
||||
index_t x_start = max(0, i_y - max_attn_len);
|
||||
index_t x_end = min(i_y + YTile, max_uih_len);
|
||||
|
||||
return ck_tile::make_tuple(0, x_end);
|
||||
return ck_tile::make_tuple(x_start, x_end);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user