| 626 | } |
| 627 | |
| 628 | Result<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 | |
| 635 | Status CudaDeviceManager::FreeHost(void* data, int64_t nbytes) { |
| 636 | return impl_->FreeHost(data, nbytes); |
no outgoing calls
no test coverage detected