tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-tvm] tqchen commented on pull request #5512: [RPC] Call sync in remote cpu to gpu copies
Date Tue, 05 May 2020 17:16:15 GMT

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



Mime
View raw message