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

Method AllocateBuffer

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

Source from the content-addressed store, hash-verified

421}
422
423Result<std::unique_ptr<Buffer>> CudaMemoryManager::AllocateBuffer(int64_t size) {
424 ARROW_ASSIGN_OR_RAISE(auto context, cuda_device()->GetContext());
425 return context->Allocate(size);
426}
427
428Result<std::shared_ptr<Buffer>> CudaMemoryManager::CopyBufferTo(
429 const std::shared_ptr<Buffer>& buf, const std::shared_ptr<MemoryManager>& to) {

Callers 2

CopyNonOwnedToMethod · 0.45
SerializeRecordBatchFunction · 0.45

Calls 1

AllocateMethod · 0.45

Tested by

no test coverage detected