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

Method Close

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

Source from the content-addressed store, hash-verified

114CudaBuffer::~CudaBuffer() { ARROW_CHECK_OK(Close()); }
115
116Status CudaBuffer::Close() {
117 if (own_data_) {
118 if (is_ipc_) {
119 return context_->CloseIpcBuffer(this);
120 } else {
121 return context_->Free(const_cast<uint8_t*>(data_), size_);
122 }
123 }
124 return Status::OK();
125}
126
127CudaBuffer::CudaBuffer(const std::shared_ptr<CudaBuffer>& parent, const int64_t offset,
128 const int64_t size)

Callers 1

TEST_FFunction · 0.45

Calls 3

CloseIpcBufferMethod · 0.80
OKFunction · 0.50
FreeMethod · 0.45

Tested by 1

TEST_FFunction · 0.36