Reputation: 152
The documentation does not say that explicitly so I am assuming the buffer cannot be reused. But want to make sure if that is the correct assumption.
Upvotes: 0
Views: 63
Reputation: 72352
It is permissible to overwrite the contents of a host buffer which you have used as an argument to an asynchronous host to device transfer, as long as you take steps to ensure that the transfer has completed.
The return status alone does not tell you that the transfer is complete. You need to use an explicit synchronization command on the host after the asynchronous copy is launched to confirm this.
Upvotes: 1