-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stream sync for scratch pad eviction (#2843)
Summary: Pull Request resolved: #2843 Before this diff, SSD TBE unsafely evicts data from the scratch pad (the buffer that stores conflict missed data). The eviction happened on the SSD stream while the backward TBE happened on the default stream. SSD TBE did not properly synchronize the streams to ensure that the backward TBE completed before evicting data from the scratch pad. This diff fixes the problem by adding the syncrhonization between streams to ensure the correct execution order between the backward TBE and the scratch pad eviction. **Before and after this diff** {F1761028617} **Before:** the scratch pad eviction happens as soon as the cache eviction is done, which is incorrect. In the figure, it overlaps with TBE forward and backward. **After:** the scartch pad eviction happens after the backward pass of TBE is done Reviewed By: q10 Differential Revision: D59716516 fbshipit-source-id: 7c60116b7cea13948d221a2eff2b4be0b99bf17a
- Loading branch information
1 parent
035a02a
commit 13d5470
Showing
1 changed file
with
44 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters