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

Method CopyFromDevice

cpp/src/arrow/gpu/cuda_memory.cc:174–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174Status CudaBuffer::CopyFromDevice(const int64_t position, const void* data,
175 int64_t nbytes) {
176 if (nbytes > size_ - position) {
177 return Status::Invalid("Copy would overflow buffer");
178 }
179 return context_->CopyDeviceToDevice(const_cast<uint8_t*>(data_) + position, data,
180 nbytes);
181}
182
183Status CudaBuffer::CopyFromAnotherDevice(const std::shared_ptr<CudaContext>& src_ctx,
184 const int64_t position, const void* data,

Callers

nothing calls this directly

Calls 2

InvalidFunction · 0.50
CopyDeviceToDeviceMethod · 0.45

Tested by

no test coverage detected