| 127 | } |
| 128 | |
| 129 | Status CopyDeviceToHost(void* dst, uintptr_t src, int64_t nbytes) { |
| 130 | ContextSaver set_temporary(context_); |
| 131 | CU_RETURN_NOT_OK("cuMemcpyDtoH", cuMemcpyDtoH(dst, src, static_cast<size_t>(nbytes))); |
| 132 | return Status::OK(); |
| 133 | } |
| 134 | |
| 135 | Status CopyDeviceToDevice(uintptr_t dst, uintptr_t src, int64_t nbytes) { |
| 136 | ContextSaver set_temporary(context_); |