| 133 | } |
| 134 | |
| 135 | Status CopyDeviceToDevice(uintptr_t dst, uintptr_t src, int64_t nbytes) { |
| 136 | ContextSaver set_temporary(context_); |
| 137 | CU_RETURN_NOT_OK("cuMemcpyDtoD", cuMemcpyDtoD(dst, src, static_cast<size_t>(nbytes))); |
| 138 | return Status::OK(); |
| 139 | } |
| 140 | |
| 141 | Status CopyDeviceToAnotherDevice(const std::shared_ptr<CudaContext>& dst_ctx, |
| 142 | uintptr_t dst, uintptr_t src, int64_t nbytes) { |