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

Method AllocateHost

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

Source from the content-addressed store, hash-verified

626}
627
628Result<std::shared_ptr<CudaHostBuffer>> CudaDeviceManager::AllocateHost(int device_number,
629 int64_t nbytes) {
630 uint8_t* data = nullptr;
631 RETURN_NOT_OK(impl_->AllocateHost(device_number, nbytes, &data));
632 return std::make_shared<CudaHostBuffer>(data, nbytes);
633}
634
635Status CudaDeviceManager::FreeHost(void* data, int64_t nbytes) {
636 return impl_->FreeHost(data, nbytes);

Callers 2

AllocateCudaHostBufferFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected