Device used by explicit staging #20414
Unanswered
Gattocrucco
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the documentation on staging I could not find for what device the function is compiled for.
After a bit of experimentation, I think the criterion is that it's compiled for the device used in the arguments to
lower
. If the compiled function is called with arguments on another device, they are silently moved to the device assigned to the compiled function, and the results are on the device of the compiled function as well.Is my guess correct?
Example:
Beta Was this translation helpful? Give feedback.
All reactions