-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework roctracer shutdown flushing (#833)
Summary: Reworked roctracer flush on shutdown. Removing a race condition added while removing the original race condition. :) Previous implementation had a deadlock in the case where the op buffer had filled and flushed on its own immediately before shutdown. This new approach is simpler but has to continuously log correlation ids of completed async ops. This is done on the roctracer supplied callback thread so it is not an overhead/performance issue. Previous attempt was over-optimized at the cost of not working correctly. Oops. Pull Request resolved: #833 Reviewed By: xuzhao9 Differential Revision: D51473804 Pulled By: aaronenyeshi fbshipit-source-id: 7a7bea1356aea7e9a719fffe8e50735d072843f6
- Loading branch information
1 parent
b2db477
commit 490f305
Showing
2 changed files
with
51 additions
and
1 deletion.
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
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