You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/05/05 17:16:15 UTC
[GitHub] [incubator-tvm] tqchen commented on pull request #5512: [RPC] Call sync in remote cpu to gpu copies
tqchen commented on pull request #5512:
URL: https://github.com/apache/incubator-tvm/pull/5512#issuecomment-624189332
@areusch We only do it for CopyFromRemote and CopyToRemote. In both cases, we(user or rpc server) allocate temp meomory from the arena, which will become invalid after the response period. The user do not guarantee these byte arrays stays alive after the call ends. So that is why explicit sync is needed here.
For DeviceAPI::CopyDataFromTo, we do not run the sync, since the resources are NDArrays managed by the remote user, and the remote user can choose to call sync after the copy
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org