Repository navigation
Conversation
💊 CircleCI build failures summary and remediationsAs of commit ed8a018 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following build failures do not appear to be due to upstream breakages:
|
VitalyFedyunin
left a comment
There was a problem hiding this comment.
LGTM. Please add tests.
|
@VitalyFedyunin Thanks for the comment. I have added tests. |
|
@VitalyFedyunin @xwang233 unfortunately tests like this tend to be flaky, we already had to disable a similar one (because there's no guarantee that python interpreter will be fast enough to query the stream while the stream has work), and also unfortunately there's no robust way to write a test for this behavior, so I suggest merging this PR w/o a test. |
|
@ngimel @VitalyFedyunin Thanks for the comments. I skipped the test, and kept the test code. People can refer to the test code and test it locally. |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@ngimel has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
…46878) Summary: Fixes #39694. [`torch.cuda._sleep(int(100 * get_cycles_per_ms()))`](https://github.com/pytorch/pytorch/pull/46878/files#diff-893b1eea27352f336f4cd832919e48d721e4e90186e63400b8596db6b82e7450R511-R513) in the test helps avoid flakiness noted by ngimel (#35144 (comment)). Pull Request resolved: #46878 Reviewed By: izdeby Differential Revision: D24550403 Pulled By: xw285cornell fbshipit-source-id: 1ecc35ef75f9a38ab332aacdf4835955105edafc
The following code
will be blocked in the current master, and will not be blocked in pytorch 1.4 release. This can be verified by a
nvprof --print-api-trace python script.pyprofiling. It is causing performance issue.I isolated the problem, and @jjsjann123 & @ptrblck pointed out the fix. Thanks!
cc @csarofeen @ptrblck @jjsjann123 @VitalyFedyunin @ngimel