-
Notifications
You must be signed in to change notification settings - Fork 25.7k
A quick fix for Stream operation errors on non-current device #15689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Someone else will need to merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrshenli has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
Hi @ezyang thanks for reviewing the code. Could you please help to click the rerun button of this failed test. It was aborted for don't know what reason. I don't have a write permission to do so. Thanks. |
|
@mrshenli If you go to 'oss pytorch' you can add yourself as a member which should give you access. (In any case I restarted your job.) |
|
doesn't this issue exist on a bunch of functions (not just query?). Is there some more holistic approach we could take here? |
|
I am thinking about implementing something like |
|
Hmm.., the new test keeps hitting error in one of the ci test... |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrshenli has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrshenli has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
see #15682
This is a quick fix by implementing the simpler solution as suggested by @colesbury. As benchmark result shows, it slows down
Stream.query()by ~20%, I would be happy to further pursue a more complex solution by implementing this in C++/ATen. But I would still vote for merge this quick fix first just to get rid of the bug sooner.Test TBAAddedFYI @jeffreyksmithjr
Benchmark
now
before