| 125 | } |
| 126 | |
| 127 | void gpu_data:: |
| 128 | copy_to_device() const |
| 129 | { |
| 130 | // We want transfers to the device to always be concurrent with any device |
| 131 | // computation. So we use our non-default stream to do the transfer. |
| 132 | async_copy_to_device(); |
| 133 | wait_for_transfer_to_finish(); |
| 134 | } |
| 135 | |
| 136 | void gpu_data:: |
| 137 | copy_to_host() const |
nothing calls this directly
no outgoing calls
no test coverage detected