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

Method CudaBuffer

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

Source from the content-addressed store, hash-verified

99// ----------------------------------------------------------------------
100
101CudaBuffer::CudaBuffer(uint8_t* data, int64_t size,
102 const std::shared_ptr<CudaContext>& context, bool own_data,
103 bool is_ipc)
104 : Buffer(data, size), context_(context), own_data_(own_data), is_ipc_(is_ipc) {
105 is_mutable_ = true;
106 SetMemoryManager(context_->memory_manager());
107}
108
109CudaBuffer::CudaBuffer(uintptr_t address, int64_t size,
110 const std::shared_ptr<CudaContext>& context, bool own_data,

Callers 1

test_CudaBufferFunction · 0.80

Calls 3

SetMemoryManagerFunction · 0.85
contextMethod · 0.80
memory_managerMethod · 0.45

Tested by 1

test_CudaBufferFunction · 0.64