-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Roctracer: Implement reliable data flushing on stop (#824)
Summary: When stopping and flushing with libroctracer there is no way to guarantee all completion notifications have been received and logged. Torch.Profiler calls deviceSynchronize() on stopping the tracer but that ensures nothing. It does add some delay, reducing the race. I augmented the tracer stop procedure to enqueue an extra async op and delay until the notification for it is received. This will fix many "flakey" unit tests that look for kernel executions that occur immediately before the end of a recording. Pull Request resolved: #824 Reviewed By: aaronenyeshi, xuzhao9 Differential Revision: D50841060 Pulled By: briancoutinho fbshipit-source-id: af736989517a1f958bc657d09efbf3c6d4c897ef
- Loading branch information
1 parent
a30ca3f
commit 46ede25
Showing
3 changed files
with
58 additions
and
2 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
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