MCPcopy Create free account
hub / github.com/apache/arrow / ~CudaHostBuffer

Method ~CudaHostBuffer

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

Source from the content-addressed store, hash-verified

205}
206
207CudaHostBuffer::~CudaHostBuffer() {
208 auto maybe_manager = CudaDeviceManager::Instance();
209 ARROW_CHECK_OK(maybe_manager);
210 ARROW_CHECK_OK((*maybe_manager)->FreeHost(const_cast<uint8_t*>(data_), size_));
211}
212
213Result<uintptr_t> CudaHostBuffer::GetDeviceAddress(
214 const std::shared_ptr<CudaContext>& ctx) {

Callers

nothing calls this directly

Calls 1

FreeHostMethod · 0.45

Tested by

no test coverage detected