MCPcopy Create free account
hub / github.com/apache/arrow / CopyHostToDevice

Method CopyHostToDevice

cpp/src/arrow/gpu/cuda_context.cc:123–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 Status CopyHostToDevice(uintptr_t dst, const void* src, int64_t nbytes) {
124 ContextSaver set_temporary(context_);
125 CU_RETURN_NOT_OK("cuMemcpyHtoD", cuMemcpyHtoD(dst, src, static_cast<size_t>(nbytes)));
126 return Status::OK();
127 }
128
129 Status CopyDeviceToHost(void* dst, uintptr_t src, int64_t nbytes) {
130 ContextSaver set_temporary(context_);

Callers

nothing calls this directly

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected