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

Method CopyFromHost

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

Source from the content-addressed store, hash-verified

164}
165
166Status CudaBuffer::CopyFromHost(const int64_t position, const void* data,
167 int64_t nbytes) {
168 if (nbytes > size_ - position) {
169 return Status::Invalid("Copy would overflow buffer");
170 }
171 return context_->CopyHostToDevice(const_cast<uint8_t*>(data_) + position, data, nbytes);
172}
173
174Status CudaBuffer::CopyFromDevice(const int64_t position, const void* data,
175 int64_t nbytes) {

Callers 2

TEST_FFunction · 0.80

Calls 2

InvalidFunction · 0.50
CopyHostToDeviceMethod · 0.45

Tested by 1

TEST_FFunction · 0.64